struct Endpoint

Included Modules

Defined in:

models/endpoint.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(url : String, method : String, details : Details) #

[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(url : String, method : String, params : Array(Param) = [] of Param, details : Details = Details.new, internal : Bool = false) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : Endpoint) : Bool #

[View source]
def add_tag(tag : Tag) #

[View source]
def ai_context : AIContext | Nil #

[View source]
def ai_context=(ai_context : AIContext | Nil) #

[View source]
def callees : Array(Callee) #

[View source]
def callees=(callees : Array(Callee)) #

[View source]
def details : Details #

[View source]
def details=(details : Details) #

[View source]
def details=(details : Details) #

[View source]
def internal : Bool #

[View source]
def internal=(internal : Bool) #

[View source]
def internal=(internal : Bool) #

[View source]
def method : String #

[View source]
def method=(method : String) #

[View source]
def params : Array(Param) #

[View source]
def params=(params : Array(Param)) #

[View source]
def params_to_hash #

[View source]
def protocol : String #

[View source]
def protocol=(protocol : String) #

[View source]
def protocol=(protocol : String) #

[View source]
def push_callee(callee : Callee) #

Add a callee, deduping by (name, path) and enforcing the Callee::MAX_PER_ENDPOINT cap. Both checks are kept here so individual analyzers can't forget them and let the list balloon.


[View source]
def push_param(param : Param) #

[View source]
def tags : Array(Tag) #

[View source]
def tags=(tags : Array(Tag)) #

[View source]
def url : String #

[View source]
def url=(url : String) #

[View source]