getProfiles()
Get a list of all available browser fingerprint profiles.Signature
Returns
Array of profile names that can be used with thebrowser option.
Example
Using a random profile
getOperatingSystems()
Get a list of all available operating systems for emulation.Signature
Returns
Array of OS names that can be used with theos option.
Example
Combining browser and OS
Headers
TheHeaders class for working with HTTP headers.
Constructor
Methods
append(name, value)— Add a header valuedelete(name)— Remove a headerget(name)— Get a header valuehas(name)— Check if header existsset(name, value)— Set a header valueentries()— Iterate over header entrieskeys()— Iterate over header namesvalues()— Iterate over header values
Example
Request
Response
TheResponse class representing HTTP responses.
Properties
status: HTTP status codestatusText: HTTP status textheaders: response headersok:trueif status is 200-299url: final URL after redirectsbody:ReadableStream<Uint8Array>ornullbodyUsed:trueif body has been read
Methods
json(): parse body as JSONtext(): get body as stringarrayBuffer(): get body as ArrayBufferclone(): clone the response