gdDocumentation0.8.0

API reference

GDMailMessage

Hold parsed mail headers and a body represented by bytes or a readable stream.

Properties

headers : Dictionary
body : Variant

Methods

set_headers

set_headers(headers: Dictionary) -> void

Store every parsed header value in wire order.

Parameters

NameTypeDefaultDescription
headersDictionaryRequiredResponse header names and their values.

Return value

void

No value is returned.

Errors

This call has no Err return slot. Its return type and documented sentinel values determine how to inspect the result.

set_body

set_body(body: Variant) -> void

Store the original body bytes or a streaming reader.

Parameters

NameTypeDefaultDescription
bodyVariantRequiredContent to write or include in the response.

Return value

void

No value is returned.

Errors

This call has no Err return slot. Its return type and documented sentinel values determine how to inspect the result.