HttpResponseSender class
Helper class that handles HTTP-based responses.
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
Static Methods
-
sendCreatedResult(
RequestContext req, ResponseContext res, dynamic err dynamic result) → void - Creates a function that sends newly created object as JSON. That callack function call be called directly or passed as a parameter to business logic components. [...]
-
sendDeletedResult(
RequestContext req, ResponseContext res, dynamic err dynamic result) → void - Creates a function that sends deleted object as JSON. That callack function call be called directly or passed as a parameter to business logic components. [...]
-
sendEmptyResult(
RequestContext req, ResponseContext res, dynamic err) → void - Creates a function that sends an empty result with 204 status code. If error occur it sends ErrorDescription with approproate status code. [...]
-
sendError(
RequestContext req, ResponseContext res, dynamic error) → void - Sends error serialized as ErrorDescription object and appropriate HTTP status code. If status code is not defined, it uses 500 status code. [...]
-
sendResult(
RequestContext req, ResponseContext res, dynamic err dynamic result) → void - Creates a function that sends result as JSON object. That function call be called directly or passed as a parameter to business logic components. [...]