Skip to content

[FEATURE] Option to control client's buffer for non-101 response body #994

@thorrez

Description

@thorrez

Is there an existing feature request for this?

  • I have searched the existing feature requests

Is your feature request related to a problem? Please describe.

I have a websocket client that sometimes receives error HTTP responses (non-101) from servers. I want the client to be able to read a lot of the response body.

Currently, it can only read 1024 bytes of the response body, due to

buf := make([]byte, 1024)

Describe the solution that you would like.

I would like an option to set that buffer to be larger than 1024 bytes.

Describe alternatives you have considered.

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions