HttpParserOptions class

Configuration options for HTTP parser behavior.

This class contains all the configuration needed to make HTTP requests during data extraction, such as URL, method, headers, payload, etc.

Constructors

HttpParserOptions({String? url, HttpMethod? method, Map<String, String>? headers, Map<String, String>? cookies, UserAgentDevice? userAgent, HttpResponseType? responseType, Object? payload, HttpPayload? payloadType, ProxyAPIConfig? proxyAPIConfig})
Creates a new HttpParserOptions instance.
HttpParserOptions.fromJson(String source)
factory
HttpParserOptions.fromMap(Map<String, dynamic> map)
factory

Properties

cookies → Map<String, String>?
Cookies to include in the request.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>?
Custom HTTP headers to include in the request.
final
method → HttpMethod?
The HTTP method to use for the request (GET, POST, PUT, etc.).
final
payload → Object?
The payload/data to send with the request.
final
payloadType → HttpPayload?
The type of payload being sent.
final
proxyAPIConfig → ProxyAPIConfig?
Proxy API configuration.
final
responseType → HttpResponseType?
The expected response type from the HTTP request.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → String?
The target URL for the HTTP request.
final
userAgent → UserAgentDevice?
The user agent device type to simulate.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → String
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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