class Athena::MIME::Header::Parameterized
- Athena::MIME::Header::Parameterized
- Athena::MIME::Header::Unstructured
- Athena::MIME::Header::Abstract(String)
- Reference
- Object
Overview
Represents a MIME Header for something like content-type
(key/value pairs of metadata included in the value).
Defined in:
header/parameterized.crConstructors
Instance Method Summary
-
#[](name : String) : String
Returns the value of the parameter with the provided name
-
#[]=(key : String, value : String) : Nil
Set the value of the parameter with the provided name to value.
-
#parameters : Hash(String, String)
Represents the parameters associated with this header.
-
#parameters=(parameters : Hash(String, String))
Represents the parameters associated with this header.
Instance methods inherited from class Athena::MIME::Header::Unstructured
body : String
body,
body=(body : String)
body=
Constructor methods inherited from class Athena::MIME::Header::Unstructured
new(name : String, value : String)
new
Instance methods inherited from class Athena::MIME::Header::Abstract(String)
body : T
body,
body=(body : T)
body=,
charset : String
charset,
charset=(charset : String)
charset=,
clone
clone,
lang : String | Nil
lang,
lang=(lang : String | Nil)
lang=,
max_line_length : Int32
max_line_length,
max_line_length=(max_line_length : Int32)
max_line_length=,
name : String
name
Constructor methods inherited from class Athena::MIME::Header::Abstract(String)
new(name : String)
new
Instance methods inherited from module Athena::MIME::Header::Interface
body
body,
body=(body)
body=,
body_to_s : String
body_to_s,
max_line_length : Int32
max_line_length,
max_line_length=(max_line_length : Int32)
max_line_length=,
name : String
name,
to_s(io : IO) : Nil
to_s
Constructor Detail
def self.new(name : String, value : String, parameters : Hash(String, String) = {} of String => String)
#
Instance Method Detail
def []=(key : String, value : String) : Nil
#
Set the value of the parameter with the provided name to value.
def parameters=(parameters : Hash(String, String))
#
Represents the parameters associated with this header.