Package com.microsoft.playwright
Class Route.FallbackOptions
- java.lang.Object
-
- com.microsoft.playwright.Route.FallbackOptions
-
- Enclosing interface:
- Route
public static class Route.FallbackOptions extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.String,java.lang.String>headersIf set changes the request HTTP headers.java.lang.StringmethodIf set changes the request method (e.g.java.lang.ObjectpostDataIf set changes the post data of request.java.lang.StringurlIf set changes the request URL.
-
Constructor Summary
Constructors Constructor Description FallbackOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Route.FallbackOptionssetHeaders(java.util.Map<java.lang.String,java.lang.String> headers)If set changes the request HTTP headers.Route.FallbackOptionssetMethod(java.lang.String method)If set changes the request method (e.g.Route.FallbackOptionssetPostData(byte[] postData)If set changes the post data of request.Route.FallbackOptionssetPostData(java.lang.String postData)If set changes the post data of request.Route.FallbackOptionssetUrl(java.lang.String url)If set changes the request URL.
-
-
-
Field Detail
-
headers
public java.util.Map<java.lang.String,java.lang.String> headers
If set changes the request HTTP headers. Header values will be converted to a string.
-
method
public java.lang.String method
If set changes the request method (e.g. GET or POST).
-
postData
public java.lang.Object postData
If set changes the post data of request.
-
url
public java.lang.String 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.
-
-
Method Detail
-
setHeaders
public Route.FallbackOptions setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
If set changes the request HTTP headers. Header values will be converted to a string.
-
setMethod
public Route.FallbackOptions setMethod(java.lang.String method)
If set changes the request method (e.g. GET or POST).
-
setPostData
public Route.FallbackOptions setPostData(java.lang.String postData)
If set changes the post data of request.
-
setPostData
public Route.FallbackOptions setPostData(byte[] postData)
If set changes the post data of request.
-
setUrl
public Route.FallbackOptions setUrl(java.lang.String 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.
-
-