struct Loveline::AnonTemplate
- Loveline::AnonTemplate
- Struct
- Value
- Object
Overview
A template consists of all the info needed to make a request, as well as variables that can be interpolated into header and url strings. Templates can be merged together, and thus used as "environments" for requests.
Included Modules
- YAML::Serializable
- YAML::Serializable::Strict
Defined in:
loveline/template.crConstant Summary
-
BLANK =
new(address: nil, method: nil, headers: Headers.new, cookies: {} of String => String, variables: {} of String => String, body: nil)
Constructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(*, address : Nil | String, method : Nil | String, headers : Array(Tuple(String, String)), cookies : Hash(String, String), variables : Hash(String, String), body : Nil | String)
Instance Method Summary
- #address : String | Nil
- #blank?
- #body : String | Nil
- #cookies : Hash(String, String)
- #headers : Loveline::Headers
- #method : String | Nil
- #variables : Hash(String, String)
Constructor Detail
def self.new(*, address : Nil | String, method : Nil | String, headers : Array(Tuple(String, String)), cookies : Hash(String, String), variables : Hash(String, String), body : Nil | String)
#