Skip to content

yurkimus/message

Repository files navigation

Message

Set of HTTP-message utilities.

Contents

Installation

npm install @yurkimus/message
deno add npm:@yurkimus/message

Exports

Enumerations:

Prototypes:

Source:

Imports

import * as message from '@yurkimus/message'

RequestMethodsEnum

import { RequestMethodsEnum } from '@yurkimus/message/enumerations/request-method'
RequestMethodsEnum = Map<string, string>

ResponseStatusEnum

import { ResponseStatusEnum } from '@yurkimus/message/enumerations/response-status'
ResponseStatusEnum = Map<string, string>

media

import { media } from '@yurkimus/message'
media = (message: Request | Response) =>
  | TypeError
  | String

body

import { body } from '@yurkimus/message'
body = (message: Request | Response) =>
  | TypeError
  | Null
  | Promise<String>
  | Promise<Object>
  | Promise<Array>
  | Promise<FormData>

clone

import { clone } from '@yurkimus/message'
clone = (message: Request | Response) =>
  | TypeError
  | [message: Request | Response, clone: Request | Response]

read

import { read } from '@yurkimus/message'
read = (message: Request | Response) =>
  | TypeError
  | [message: Request | Response, body: ReturnType<body>]

About

Set of HTTP-message utilities

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published