struct Protocol::Network::Initiator

Overview

Information about the request initiator.

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 column_number : Number::Primitive | Nil #

Initiator column number, set for Parser type or for Script type (when script is importing module) (0-based).


[View source]
def line_number : Number::Primitive | Nil #

Initiator line number, set for Parser type or for Script type (when script is importing module) (0-based).


[View source]
def request_id : RequestId | Nil #

Set if another request triggered this request (e.g. preflight).


[View source]
def stack : Runtime::StackTrace | Nil #

Initiator JavaScript stack trace, set for Script only.


[View source]
def type : String #

Type of this initiator.


[View source]
def url : String | Nil #

Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type.


[View source]