HttpProfileRequestData class

Information sent as part of the initial HTTP request.

Constructors

HttpProfileRequestData.buildErrorRequest({required String? error, required List<HttpProfileRequestEvent> events})
HttpProfileRequestData.buildSuccessfulRequest({required Map<String, dynamic> headers, required Map<String, dynamic>? connectionInfo, required int contentLength, required List<String> cookies, required bool followRedirects, required int maxRedirects, required String method, required bool persistentConnection, required List<HttpProfileRequestEvent> events, HttpProfileProxyData? proxyDetails})

Properties

connectionInfo Map<String, dynamic>?
Information about the client connection.
no setter
contentLength int
The content length of the request, in bytes.
no setter
cookies List<String>
Cookies presented to the server (in the 'cookie' header).
no setter
error String?
The error associated with the failed request.
final
events List<HttpProfileRequestEvent>
Events that has occurred while issuing this HTTP request.
final
followRedirects bool
Whether redirects are followed automatically.
no setter
hasError bool
Returns true if an error has occurred while issuing the request.
no setter
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>
Returns the client request headers.
no setter
maxRedirects int
The maximum number of redirects to follow when followRedirects is true.
no setter
method String
The method of the request.
no setter
persistentConnection bool
The requested persistent connection state.
no setter
proxyDetails HttpProfileProxyData?
Proxy authentication details for this 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

Static Methods

parse(Map<String, dynamic>? json) HttpProfileRequestData?