struct Protocol::Fetch::RequestPattern

Included Modules

Defined in:

protocol/fetch.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def request_stage : RequestStage | Nil #

Stage at which to begin intercepting requests. Default is Request.


[View source]
def resource_type : Network::ResourceType | Nil #

If set, only requests for matching resource types will be intercepted.


[View source]
def url_pattern : String | Nil #

Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is backslash. Omitting is equivalent to "*".


[View source]