Skip to content

Figure out what to do about informational status codes #167

Open
@carllerche

Description

@carllerche

An HTTP/2.0 stream can begin with an arbitrary number of header frames with a 1xx status code.

The current API does not support this. My best guess would be doing something like this:

client

ResponseFuture is modified to be a future of (naming TBD):

enum Head {
    Informational(ResponseFuture),
    Response(Response<RecvBody>),
}

server

Respond gets a new fn: send_informational(response: Response<()>).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions