Represents a client-side HTTP response. Instances of this class are not thread-safe.
Anything
HttpClientResponse
HttpInput
Basic
Identifiable
Object
Anything
no subtypes hierarchy
Initializer |
HttpClientResponse(HttpClientResponse delegate) |
Attributes | |
cookies | shared {String*} cookies The Set-Cookie headers (including trailers) |
headers | shared actual MultiMap headers The http headers Refines HttpInput.headers |
statusCode | shared Integer statusCode The HTTP status code of the response |
statusMessage | shared String statusMessage The HTTP status code of the response |
stream | shared actual ReadStream stream The read stream of this request Refines HttpInput.stream |
trailers | shared MultiMap trailers The http trailers |
Inherited Attributes |
Attributes inherited from: HttpInput |
Attributes inherited from: Object hash , string |
Methods | |
netSocket | shared actual 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 Refines HttpInput.netSocket |
parseBody | shared actual Promise<Body> parseBody<Body>(BodyType<Body> parser) Parse the input body, the returned promise is resolved with the body. Refines HttpInput.parseBody |
Inherited Methods |
Methods inherited from: Object equals |