Package com.microsoft.playwright.options
Class HttpCredentials
- java.lang.Object
-
- com.microsoft.playwright.options.HttpCredentials
-
public class HttpCredentials extends Object
-
-
Field Summary
Fields Modifier and Type Field Description StringoriginRestrain sending http credentials on specific origin (scheme://host:port).StringpasswordHttpCredentialsSendsendThis option only applies to the requests sent from correspondingAPIRequestContextand does not affect requests sent from the browser.Stringusername
-
Constructor Summary
Constructors Constructor Description HttpCredentials(String username, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpCredentialssetOrigin(String origin)Restrain sending http credentials on specific origin (scheme://host:port).HttpCredentialssetSend(HttpCredentialsSend send)This option only applies to the requests sent from correspondingAPIRequestContextand does not affect requests sent from the browser.
-
-
-
Field Detail
-
username
public String username
-
password
public String password
-
origin
public String origin
Restrain sending http credentials on specific origin (scheme://host:port).
-
send
public HttpCredentialsSend send
This option only applies to the requests sent from correspondingAPIRequestContextand does not affect requests sent from the browser."always"-Authorizationheader with basic authentication credentials will be sent with the each API request.'unauthorized- the credentials are only sent when 401 (Unauthorized) response withWWW-Authenticateheader is received. Defaults to"unauthorized".
-
-
Method Detail
-
setOrigin
public HttpCredentials setOrigin(String origin)
Restrain sending http credentials on specific origin (scheme://host:port).
-
setSend
public HttpCredentials setSend(HttpCredentialsSend send)
This option only applies to the requests sent from correspondingAPIRequestContextand does not affect requests sent from the browser."always"-Authorizationheader with basic authentication credentials will be sent with the each API request.'unauthorized- the credentials are only sent when 401 (Unauthorized) response withWWW-Authenticateheader is received. Defaults to"unauthorized".
-
-