Record
Reply
Module PuduLangDocgen.Serve
type Reply = {
status: Int,
media: Str,
body: Bytes
}
A response: its status, media type, and body
Fields
| Name | Type | Description |
|---|---|---|
status |
Int |
|
media |
Str |
|
body |
Bytes |
Related functions
| Name | Description |
|---|---|
reply |
The reply to a request line: files and folder indexes for `GET` and `HEAD`, the site's not-found page for missing files, and plain refusals for malformed or other requests. A `HEAD` reply keeps its body so the head reports its length; only the body is not sent. |
answer |
The reply for a request path: the file, a folder's index, or the site's not-found page. |
head |
The response head of a reply. |