http/request library
Classes
- BaseHttpResponseException
- Between
- Confirmed
- CustomValidationRule
- EndWith
- GreaterThan
- HttpResponseException
-
InArray<
T> - IsAlpha
- IsAlphaDash
- IsAlphaNumeric
- IsArray
- IsBoolean
- IsDate
- IsDouble
- IsEmail
- IsFile
- IsImage
- IsInteger
- IsIp
- IsJson
- IsNumeric
- IsRequired
- IsString
- IsURL
- IsUUID
- LengthBetween
- LessThan
- Max
- MaxLength
- Min
- MinLength
-
NotInArray<
T> - RedirectException
- Request
- RequestFile
- Represents an uploaded file part from multipart/form-data. Provides lazy access to bytes, size, and easy storage/move.
- RequestScope
-
Per-request state container that lives in the current
Zone. - RequiredIf
- RequiredIfNot
- Rules
- StartWith
- Validation
- ValidationRule
Properties
- clienIp → String?
-
no setter
- currentRequestScope → RequestScope?
-
Returns the RequestScope bound to the current zone, or
nullwhen called from outside a request (background jobs, tests that render a template directly, etc.).no setter -
extensions
↔ List<
String> -
getter/setter pair
- httpResponse → HttpResponse
-
no setter
- method → String?
-
no setter
- requestContentType → ContentType?
-
no setter
- requestHeaders → HttpHeaders?
-
no setter
- requestUri → Uri
-
no setter
Functions
-
clearRequestUserResolver(
) → void -
getParam<
T> (String key, [dynamic defualtValue]) → T? -
requestBody(
) → Future -
setRequestUserResolver(
RequestUserResolver resolver) → void -
Register the resolver invoked by Request.user. Called from
vania_auth's service provider (or any custom auth integration).
Typedefs
- RequestUserResolver = Map? Function()
-
UniqueValidationResolver
= Future<
bool> Function(Map<String, dynamic> data, dynamic value, String args)