parsePostBodyExample
HTTP (deprecated)
v3
Preview
1
2
3
4
5
export
const
parsePostBodyExample
=
async
(
req
:
Request
)
:
Promise
<
Response
>
=>
{
// parse post body as text
const
text
=
await
req
.
json
(
)
;
return
Response
.
json
(
text
)
;
}
;
Preview