Skip to content

Commit 03a9a9d

Browse files
authored
Merge pull request hapijs#3811 from wswoodruff/patch-4
Sp API updates in marshal section
2 parents a5472bd + 47d87c2 commit 03a9a9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

API.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4785,12 +4785,12 @@ Returns a [`response`](#response-object) which you can pass into the [reply inte
47854785
- `response` - the response object being prepared.
47864786
- must return the prepared response object (new object or `response`).
47874787
- may throw an error which is used as the prepared response.
4788-
- `marshal` - a function with the signature `async function(response)` used to repare the
4788+
- `marshal` - a function with the signature `async function(response)` used to prepare the
47894789
response for transmission to the client before it is sent, where:
47904790
- `response` - the response object being marshaled.
47914791
- must return the prepared value (not as response object) which can be any value accepted
47924792
by the [`h.response()`](#h.response()) `value` argument.
4793-
- may throw an error which is used as the marhsaled value.
4793+
- may throw an error which is used as the marshaled value.
47944794
- `close` - a function with the signature `function(response)` used to close the resources
47954795
opened by the response object (e.g. file handlers), where:
47964796
- `response` - the response object being marshaled.

0 commit comments

Comments
 (0)