module Athena::MIME::Header::Interface

Overview

An OO representation of a MIME header.

Direct including types

Defined in:

header/interface.cr

Instance Method Summary

Instance Method Detail

def body #

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


[View source]
def body=(body) #

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


[View source]
def 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).


[View source]
abstract def max_line_length : Int32 #

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


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

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


[View source]
abstract def name : String #

Returns the name of the header.


[View source]
abstract def to_s(io : IO) : Nil #

Render this header as a compliant string.


[View source]