abstract class Athena::MIME::Part::Abstract

Overview

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

Direct Known Subclasses

Defined in:

part/abstract.cr

Instance Method Summary

Instance Method Detail

def body_to_s : String #

Returns a string representation of the body of this part, excluding any headers.


[View source]

Returns the headers associated with this part.


[View source]
abstract def media_sub_type : String #

Returns the media sub-type of this part. E.g. pdf within application/pdf.


[View source]
abstract def media_type : String #

Returns the media type of this part. E.g. application within application/pdf.


[View source]
def prepared_headers : AMIME::Header::Collection #

Returns a cloned AMIME::Header::Collection consisting of a final representation of the headers associated with this message. I.e. Ensures the message's headers include the required ones.


[View source]