Options
All
  • Public
  • Public/Protected
  • All
Menu

adjustable parameters for when making network requests to the url specified. used by IPageRequest.

Hierarchy

  • IUrlSettings

Index

Properties

Optional contentType

contentType: string

new for Chrome backend. (not available on WebKit).

A shortcut to set the content type when using POST data. If you supply a "content-type" header via headers this will be ignored.

Typical options are application/x-www-form-urlencoded, application/json, or text/plain, Please see https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST for details.

default

"application/x-www-form-urlencoded"

Optional data

data: any

submitted in POST BODY of your request.

Optional encoding

encoding: string
deprecated:

for use with the WebKit backend only. the new Chrome backend defaults to 'utf8'

default

"utf8"

Optional headers

headers: {}

custom headers for the taret page. for example, can be used to specify a referer.

if you want to set headers for every sub-resource requested, use the IRequestSettings.customHeaders parameter instead.

Type declaration

  • [key: string]: string

Optional operation

operation: string

valid choices: GET, POST, PATCH, PUT, DELETE or OPTIONS. The old WebKit backend only supports GET or POST

default

"GET"