CustomServiceParams class

Ad-hoc request params for custom service calls.

Unlike BaseServiceRequestParams (built for chain JSON-RPC providers with response decoding, status codes and CBOR persistence), this is a plain holder for one-off calls such as prover / JWT-issuer endpoints or any custom per-chain call: a Uri endpoint, HTTP headers, a RequestMethod and an optional raw BuBytes body.

Mixed-in types

Constructors

CustomServiceParams({required Uri path, required ServiceReponseEncoding responseEncoding, Map<String, String> headers = const {}, RequestMethod requestMethod = RequestMethod.post, BuBytes? body})
CustomServiceParams.deserialize({List<int>? bytes, CborObject<Object?>? obj})
factory

Properties

body → BuBytes?
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
final
path → Uri
final
requestMethod → RequestMethod
final
responseEncoding → ServiceReponseEncoding
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serializationIdentifier → BlockchainUtilsSerializationIdentifier
no setteroverride
serializationItems → List<CborObject<Object?>?>
no setteroverride

Methods

copyWith({Map<String, String>? headers, RequestMethod? requestMethod, BuBytes? body, Uri? path}) → CustomServiceParams
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCbor() → CborTagValue<CborObject<Object?>>
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited