Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Request

Hierarchy

  • Request

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly client

client: NekoBot

Methods

Private _send

  • _send(method: string, endpoint: string, __namedParameters: { headers: Record<string, string>; queries: Record<string, string> }): Promise<{ body: any; statusCode: number }>
  • Parameters

    • method: string
    • endpoint: string
    • __namedParameters: { headers: Record<string, string>; queries: Record<string, string> }
      • headers: Record<string, string>
      • queries: Record<string, string>

    Returns Promise<{ body: any; statusCode: number }>

Private encodeSearchParams

  • encodeSearchParams(queries: Record<string, string>): string

get

  • get(endpoint: string, __namedParameters: { headers: Record<string, string>; queries: Record<string, string> }): Promise<string>
  • Parameters

    • endpoint: string
    • __namedParameters: { headers: Record<string, string>; queries: Record<string, string> }
      • headers: Record<string, string>
      • queries: Record<string, string>

    Returns Promise<string>

Generated using TypeDoc