class Playwright::Route::ContinueOverrides
- Playwright::Route::ContinueOverrides
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
playwright/route.crConstructors
- .new(pull : JSON::PullParser)
- .new(url : Nil | String = nil, method : Nil | String = nil, post_data : Slice(UInt8) | Nil = nil, headers : Nil | Hash(String, String) = nil)
Instance Method Summary
-
#headers : Hash(String, String) | Nil
If set changes the request HTTP headers.
-
#headers=(headers : Hash(String, String) | Nil)
If set changes the request HTTP headers.
-
#method : String | Nil
If set changes the request method (e.g.
-
#method=(method : String | Nil)
If set changes the request method (e.g.
-
#post_data : Bytes | Nil
If set changes the post data of request
-
#post_data=(post_data : Bytes | Nil)
If set changes the post data of request
-
#url : String | Nil
If set changes the request URL.
-
#url=(url : String | Nil)
If set changes the request URL.
- #with_post_data(data : String)
Constructor Detail
def self.new(url : Nil | String = nil, method : Nil | String = nil, post_data : Slice(UInt8) | Nil = nil, headers : Nil | Hash(String, String) = nil)
#
Instance Method Detail
def headers : Hash(String, String) | Nil
#
If set changes the request HTTP headers. Header values will be converted to a string.
def headers=(headers : Hash(String, String) | Nil)
#
If set changes the request HTTP headers. Header values will be converted to a string.
def url : String | Nil
#
If set changes the request URL. New URL must have same protocol as original one.
def url=(url : String | Nil)
#
If set changes the request URL. New URL must have same protocol as original one.