Package com.microsoft.playwright
Class Route.FallbackOptions
java.lang.Object
com.microsoft.playwright.Route.FallbackOptions
- Enclosing interface:
Route
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetHeaders(Map<String, String> headers) If set changes the request HTTP headers.If set changes the request method (e.g.setPostData(byte[] postData) If set changes the post data of request.setPostData(String postData) If set changes the post data of request.If set changes the request URL.
-
Field Details
-
headers
If set changes the request HTTP headers. Header values will be converted to a string. -
method
If set changes the request method (e.g. GET or POST). -
postData
If set changes the post data of request. -
url
If set changes the request URL. New URL must have same protocol as original one. Changing the URL won't affect the route matching, all the routes are matched using the original request URL.
-
-
Constructor Details
-
FallbackOptions
public FallbackOptions()
-
-
Method Details
-
setHeaders
If set changes the request HTTP headers. Header values will be converted to a string. -
setMethod
If set changes the request method (e.g. GET or POST). -
setPostData
If set changes the post data of request. -
setPostData
If set changes the post data of request. -
setUrl
If set changes the request URL. New URL must have same protocol as original one. Changing the URL won't affect the route matching, all the routes are matched using the original request URL.
-