struct Protocol::Network::RequestPattern

Overview

Request pattern for interception.

Included Modules

Defined in:

protocol/network.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def interception_stage : InterceptionStage | Nil #

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


[View source]
def resource_type : 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]