ResponseEntity class
Constructors
-
ResponseEntity(int statusCode, {Object? body, ObjectMapper? objectMapper, Encoding? encoding, Map<String, Object>? context})
-
-
ResponseEntity.badRequest({Object? body, })
-
-
ResponseEntity.internalServerError({Object? body, })
-
-
ResponseEntity.methodNotAllowed({Object? body, })
-
-
ResponseEntity.notFound({Object? body, })
-
-
ResponseEntity.ok({Object? body, })
-
-
ResponseEntity.tooManyRequests({Object? body, int? retryAfter, })
-
Properties
-
contentLength
→ int?
-
The contents of the content-length field in
headers
.
no setterinherited
-
context
→ Map<String, Object>
-
Extra context that can be used by for middleware and handlers.
finalinherited
-
encoding
→ Encoding?
-
The encoding of the message body.
no setterinherited
-
expires
→ DateTime?
-
The date and time after which the response's data should be considered
stale.
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
The HTTP headers with case-insensitive keys.
no setterinherited
-
The HTTP headers with multiple values with case-insensitive keys.
no setterinherited
-
isEmpty
→ bool
-
If
true
, the stream returned by read
won't emit any bytes.
no setterinherited
-
lastModified
→ DateTime?
-
The date and time the source of the response's data was last modified.
no setterinherited
-
mimeType
→ String?
-
The MIME type of the message.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
statusCode
→ int
-
The HTTP status code of the response.
finalinherited