abstract class Athena::MIME::Header::Abstract(T)

Overview

Base type of all headers that provides common utilities and abstractions.

Included Modules

Direct Known Subclasses

Defined in:

header/abstract.cr

Constructors

Instance Method Summary

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

[View source]

Instance Method Detail

abstract def body : T #

Returns the body of this header.


[View source]
abstract def body=(body : T) #

Sets the body of this header.


[View source]
def charset : String #

Sets the character set used in this header. Defaults to UTF-8.


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

Sets the character set used in this header. Defaults to UTF-8.


[View source]
def clone #

Returns a copy of self with all instance variables cloned.


[View source]
def lang : String | Nil #

Sets the language used in this header. E.g. en-us.


[View source]
def lang=(lang : String | Nil) #

Sets the language used in this header. E.g. en-us.


[View source]
def max_line_length : Int32 #

Controls how long each header line may be before needing wrapped. Defaults to 76.


[View source]
def max_line_length=(max_line_length : Int32) #

Controls how long each header line may be before needing wrapped. Defaults to 76.


[View source]
def name : String #

Returns the name of the header.


[View source]