Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "test"

Index

Type aliases

CallbackHandler

CallbackHandler: (err: any, res: IResponse) => void

The handler function for callbacks within end method.

Type declaration

ExpectChecker

ExpectChecker: (res: IResponse) => any

Custom expectation checker.

Type declaration

Header

Header: {}

Type declaration

HeaderValue

HeaderValue: string | string[]

MultipartValue

MultipartValueSingle

MultipartValueSingle: Blob | Uint8Array | Deno.Reader | string | boolean | number

Parser

Parser: (str: string) => any

Type declaration

    • (str: string): any
    • Parameters

      • str: string

      Returns any

Plugin

Plugin: (req: IRequest) => void

Type declaration

Serializer

Serializer: (obj: any) => string

Type declaration

    • (obj: any): string
    • Parameters

      • obj: any

      Returns string

Variables

Const SHAM_SYMBOL

SHAM_SYMBOL: any = Symbol("SHAM_SYMBOL")

Allow us to hang off our internal xhr sham promises without exposing the internals to the consumer.

Const SuperRequest

SuperRequest: IRequest = (superagent as any).Request

The superagent Request class.

Functions

Private cleanHeader

  • cleanHeader(header: Header, changesOrigin: boolean): Header

Private completeXhrPromises

  • completeXhrPromises(): Promise<void>

Private error

  • error(msg: string, expected: any, actual: any): Error

Private initHeaders

  • initHeaders(req: any): void

Private isRedirect

  • isRedirect(code?: number): any

random

  • random(min: number, max: number): number

Generated using TypeDoc