Provides access for reading the http headers and the body of an HttpServerRequest
or an HttpClientResponse
.
Anything
Object
HttpInput
Basic
Identifiable
Object
Anything
Initializer |
HttpInput() |
Attributes | |
charset | shared default Charset? charset The charset or null |
headers | shared formal MultiMap headers The headers |
mimeType | shared default String? mimeType The mime type or null |
stream | shared formal ReadStream stream The read stream of this request |
Inherited Attributes |
Attributes inherited from: Object hash , string |
Methods | |
netSocket | shared 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 |
parseBody | shared 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 |