Provides access for reading the http headers and the body of an HttpServerRequest or an HttpClientResponse.

By: Julien Viet
Initializer
HttpInput()
Attributes
charsetshared default Charset? charset

The charset or null

headersshared formal MultiMap headers

The headers

mimeTypeshared default String? mimeType

The mime type or null

streamshared formal ReadStream stream

The read stream of this request

Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
netSocketshared formal NetSocket netSocket()

Get a net socket for the underlying connection of this request. USE THIS WITH CAUTION! Writing to the socket directly if you don't know what you're doing can easily break the HTTP protocol

parseBodyshared formal Promise<Body> parseBody<Body>(BodyType<Body> parser)

Parse the input body, the returned promise is resolved with the body.

Inherited Methods
Methods inherited from: Object
equals