HttpContext class
The context of a HTTP request/response triggered by a request to an API.
- Inheritance
-
- Object
- TriggerContext<
HttpRequest, HttpResponse> - HttpContext
Constructors
- HttpContext(String id, HttpRequest req, HttpResponse resp, {dynamic next = _defaultHandler<HttpContext>})
- HttpContext.fromCtx(HttpContext ctx, HttpHandler next)
- HttpContext.fromRequest(ServerMessage msg)
- Create a HTTP context from a server message.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The ID which connects the request/response for the server handling.
finalinherited
- req → HttpRequest
-
The request object.
finalinherited
- res → HttpResponse
-
The response object.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
next(
) → Future< HttpContext> - Call the next middleware in the middleware chain
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toResponse(
) → ClientMessage - Converts the context to a gRPC client response.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited