Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "requestOptions"

Index

Variables

Const encoder

encoder: TextEncoder = new TextEncoder()

Functions

asBuffer

  • asBuffer(body: unknown): unknown

asBufferOrString

  • asBufferOrString(body: any): any

createRequestInit

  • createRequestInit(req: Request, res: Response, options: ProxyOptions): Promise<RequestInit>

extendHeaders

  • extendHeaders(baseHeaders: HeadersInit, reqHeaders: Headers, ignoreHeaders: string[]): Headers

getBody

  • getBody(req: any, res: any): any

Const parseRawBody

  • parseRawBody(body: any): any

parseUrl

reqBody

  • reqBody(req: Request, res: Response, options: ProxyOptions): Promise<any>

reqHeaders

Generated using TypeDoc