class Athena::MIME::Header::Parameterized

Overview

Represents a MIME Header for something like content-type (key/value pairs of metadata included in the value).

Defined in:

header/parameterized.cr

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def [](name : String) : String #

Returns the value of the parameter with the provided name


[View source]
def []=(key : String, value : String) : Nil #

Set the value of the parameter with the provided name to value.


[View source]
def parameters : Hash(String, String) #

Represents the parameters associated with this header.


[View source]
def parameters=(parameters : Hash(String, String)) #

Represents the parameters associated with this header.


[View source]