HttpParserOptions constructor

HttpParserOptions({
  1. String? url,
  2. HttpMethod? method,
  3. Map<String, String>? headers,
  4. Map<String, String>? cookies,
  5. UserAgentDevice? userAgent,
  6. HttpResponseType? responseType,
  7. Object? payload,
  8. HttpPayload? payloadType,
  9. 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,
});