HttpParserOptions constructor
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.
All parameters are optional and have sensible defaults.
url - The target URL for the request
method - The HTTP method to use
headers - Custom headers to include
cookies - Cookies to include
userAgent - User agent device to simulate
responseType - Expected response type
payload - Data to send with the request
payloadType - Format of the payload
proxyAPIConfig - Proxy API configuration
Implementation
HttpParserOptions({
this.url,
this.method,
this.headers,
this.cookies,
this.userAgent,
this.responseType,
this.payload,
this.payloadType,
this.proxyAPIConfig,
});