ServerRequest class

Framework-agnostic HTTP request representation for MetaMantle SSR.

Constructors

ServerRequest({required String method, required Uri uri, Map<String, String>? headers, String? clientIp, List<int>? bodyBytes})

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-currency header.
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-Since header if valid.
no setter
ifNoneMatch → String?
Retrieves the If-None-Match header value.
no setter
locale → String?
Retrieves client locale from accept-language header.
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-id header or subdomains.
no setter
uri → Uri
final

Methods

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