Set of HTTP-message utilities.
npm install @yurkimus/message
deno add npm:@yurkimus/message
Enumerations:
Prototypes:
Source:
import * as message from '@yurkimus/message'
import { RequestMethodsEnum } from '@yurkimus/message/enumerations/request-method'
RequestMethodsEnum = Map<string, string>
import { ResponseStatusEnum } from '@yurkimus/message/enumerations/response-status'
ResponseStatusEnum = Map<string, string>
import { media } from '@yurkimus/message'
media = (message: Request | Response) =>
| TypeError
| String
import { body } from '@yurkimus/message'
body = (message: Request | Response) =>
| TypeError
| Null
| Promise<String>
| Promise<Object>
| Promise<Array>
| Promise<FormData>
import { clone } from '@yurkimus/message'
clone = (message: Request | Response) =>
| TypeError
| [message: Request | Response, clone: Request | Response]
import { read } from '@yurkimus/message'
read = (message: Request | Response) =>
| TypeError
| [message: Request | Response, body: ReturnType<body>]