A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://playwright.dev/java/docs/api/class-apirequest below:

Website Navigation


APIRequest | Playwright Java

  • setBaseURL String (optional)#

    Methods like APIRequestContext.get() take the base URL into consideration by using the URL() constructor for building the corresponding URL. Examples:

  • setClientCertificates List<ClientCertificates> (optional) Added in: 1.46#

    TLS Client Authentication allows the server to request a client certificate and verify it.

    Details

    An array of client certificates to be used. Each certificate object must have either both certPath and keyPath, a single pfxPath, or their corresponding direct value equivalents (cert and key, or pfx). Optionally, passphrase property should be provided if the certificate is encrypted. The origin property should be provided with an exact match to the request origin that the certificate is valid for.

    note

    When using WebKit on macOS, accessing localhost will not pick up client certificates. You can make it work by replacing localhost with local.playwright.

  • setExtraHTTPHeaders Map<String, String> (optional)#

    An object containing additional HTTP headers to be sent with every request. Defaults to none.

  • setFailOnStatusCode boolean (optional) Added in: v1.51#

    Whether to throw on response codes other than 2xx and 3xx. By default response object is returned for all status codes.

  • setHttpCredentials HttpCredentials (optional)#

    Credentials for HTTP authentication. If no origin is specified, the username and password are sent to any servers upon unauthorized responses.

  • setIgnoreHTTPSErrors boolean (optional)#

    Whether to ignore HTTPS errors when sending network requests. Defaults to false.

  • setMaxRedirects int (optional) Added in: v1.52#

    Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is exceeded. Defaults to 20. Pass 0 to not follow redirects. This can be overwritten for each request individually.

  • setProxy Proxy (optional)#

    Network proxy settings.

  • setStorageState String (optional)#

    Populates context with given storage state. This option can be used to initialize context with logged-in information obtained via BrowserContext.storageState() or APIRequestContext.storageState(). Either a path to the file with saved storage, or the value returned by one of BrowserContext.storageState() or APIRequestContext.storageState() methods.

  • setStorageStatePath Path (optional) Added in: v1.18#

    Populates context with given storage state. This option can be used to initialize context with logged-in information obtained via BrowserContext.storageState(). Path to the file with saved storage state.

  • setTimeout double (optional)#

    Maximum time in milliseconds to wait for the response. Defaults to 30000 (30 seconds). Pass 0 to disable timeout.

  • setUserAgent String (optional)#

    Specific user agent to use in this context.


  • RetroSearch is an open source project built by @garambo | Open a GitHub Issue

    Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

    HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4