CpeHttpRequest class final

Representación inmutable de una solicitud HTTP para llamadas REST y SOAP.

Constructors

CpeHttpRequest({required String method, required Uri uri, Map<String, String> headers = const {}, Object? body, Duration timeout = const Duration(seconds: 30)})
const

Properties

body → Object?
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
final
method → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeout → Duration
final
uri → Uri
final

Methods

copyWith({String? method, Uri? uri, Map<String, String>? headers, Object? body, Duration? timeout}) → CpeHttpRequest
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