struct Endpoint
- Endpoint
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
models/endpoint.crConstructors
- .new(url : String, method : String, details : Details)
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(url : String, method : String, params : Array(Param) = [] of Param, details : Details = Details.new, internal : Bool = false)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #==(other : Endpoint) : Bool
- #add_tag(tag : Tag)
- #ai_context : AIContext | Nil
- #ai_context=(ai_context : AIContext | Nil)
- #callees : Array(Callee)
- #callees=(callees : Array(Callee))
- #details : Details
- #details=(details : Details)
- #details=(details : Details)
- #internal : Bool
- #internal=(internal : Bool)
- #internal=(internal : Bool)
- #method : String
- #method=(method : String)
- #params : Array(Param)
- #params=(params : Array(Param))
- #params_to_hash
- #protocol : String
- #protocol=(protocol : String)
- #protocol=(protocol : String)
-
#push_callee(callee : Callee)
Add a callee, deduping by (name, path) and enforcing the
Callee::MAX_PER_ENDPOINTcap. - #push_param(param : Param)
- #tags : Array(Tag)
- #tags=(tags : Array(Tag))
- #url : String
- #url=(url : String)
Constructor Detail
def self.new(url : String, method : String, params : Array(Param) = [] of Param, details : Details = Details.new, internal : Bool = false)
#
Instance Method Detail
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.