struct Athena::MIME::Encoder::RFC2231

Overview

An encoder based on the RFC2231 spec.

Included Modules

Defined in:

encoder/rfc2231.cr

Constructors

Instance Method Summary

Instance methods inherited from module Athena::MIME::Encoder::EncoderInterface

encode(input : String, charset : String | Nil = "UTF-8", first_line_offset : Int32 = 0, max_line_length : Int32 | Nil = nil) : String encode

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def clone #

Returns a copy of self with all instance variables cloned.


[View source]
def encode(input : String, charset : String | Nil = "UTF-8", first_line_offset : Int32 = 0, max_line_length : Int32 | Nil = nil) : String #

Returns an encoded version of the provided input.

first_line_offset may optionally be used depending on the exact implementation if the first line needs to be shorter. max_line_length may optionally be used depending on the exact implementation to customize the max length of each line.


[View source]
def initialize #

[View source]