Skip to content

module Athena::MIME::Header::Interface #

An OO representation of a MIME header.

Direct including types

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

Methods#

#body#

Returns the body of the header. The type depends on the specific concrete class.

#body=(body)#

Sets the body of the header. The type depends on the specific concrete class.

#body_to_s : String#

Returns the header's body, prepared for folding into a final header value.

This is not necessarily RFC 2822 compliant since folding white space is not added at this stage (see #to_s for that).

abstract #max_line_length : Int32#

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

abstract #max_line_length=(max_line_length : Int32)#

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

abstract #name : String#

Returns the name of the header.

abstract #to_s(io : IO) : Nil#

Render this header as a compliant string.