BloomRpcServerContext class
Request execution context passed to server-side BloomRpcHandler implementations.
Exposes extracted path parameters, query parameters, headers, and ambient context.
Constructors
-
BloomRpcServerContext({required BloomRpcContract contract, required Map<
String, String> pathParams, required Map<String, String> queryParams, required Map<String, String> headers, required BloomRpcServerRequest request, Map<String, Object?> context = const {}}) -
Creates a BloomRpcServerContext wrapping request metadata.
const
Properties
-
context
→ Map<
String, Object?> -
Arbitrary contextual attributes (e.g. authenticated user, database executor).
final
- contract → BloomRpcContract
-
The matched contract being handled.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Request headers.
final
-
pathParams
→ Map<
String, String> -
Extracted path parameters from the URL template (e.g.
{'id': '123'}).final -
queryParams
→ Map<
String, String> -
Request query parameters.
final
- request → BloomRpcServerRequest
-
The original incoming server request.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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