Skip to content

Server API recommendation: auto set content length from body provided #8

Description

@jentfoo

It's awkward and confusing to have to know that you implicitly need to add the content length header. This is easier to do in the client right now since the body content is provided before the request is made.

However for the HTTPServer's ResponseWriter we specify the body separate from the headers. This may be a harder problem to solve (but we could potentially add some API sugar when the entire content is known before hand).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions