ServerRequest class
Framework-agnostic HTTP request representation for MetaMantle SSR.
Constructors
Properties
-
bodyBytes
→ List<
int> -
final
- bodyText → String
-
Request body decoded as UTF-8 string.
no setter
- clientIp → String?
-
final
- currency → String?
-
Retrieves client requested currency from
x-currencyheader.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
final
- host → String?
-
Retrieves the Host header.
no setter
- ifModifiedSince → DateTime?
-
Retrieves the parsed
If-Modified-Sinceheader if valid.no setter - ifNoneMatch → String?
-
Retrieves the
If-None-Matchheader value.no setter - locale → String?
-
Retrieves client locale from
accept-languageheader.no setter - method → String
-
final
- path → String
-
Normalized request path (e.g. '/products/basmati-rice/').
no setter
-
queryParameters
→ Map<
String, String> -
Parsed query parameters.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tenantId → String?
-
Retrieves the tenant identifier from
x-tenant-idheader or subdomains.no setter - uri → Uri
-
final
Methods
-
header(
String name) → String? - Retrieves an incoming header by name (case-insensitive).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited