API reference
GDMailMessage
Hold parsed mail headers and a body represented by bytes or a readable stream.
Properties
headers: Dictionarybody: Variant
Methods
set_headers
set_headers(headers: Dictionary) -> voidStore every parsed header value in wire order.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
headers | Dictionary | Required | Response 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) -> voidStore the original body bytes or a streaming reader.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
body | Variant | Required | Content 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.