Skip to main content

Class: ApiRequest

api/src.ApiRequest

Hierarchy

  • IncomingMessage

    ApiRequest

Constructors

constructor

new ApiRequest(socket)

Parameters

NameType
socketSocket

Inherited from

IncomingMessage.constructor

Defined in

node_modules/@types/node/http.d.ts:840

Properties

auth

Optional auth: null | AuthData

Defined in

projects/plugins/packages/api/src/lib/structures/api/ApiRequest.ts:27


body

Optional body: unknown

Defined in

projects/plugins/packages/api/src/lib/structures/api/ApiRequest.ts:18


params

params: Record<string, string> = {}

Defined in

projects/plugins/packages/api/src/lib/structures/api/ApiRequest.ts:13


query

query: Record<string, string | string[]> = {}

Defined in

projects/plugins/packages/api/src/lib/structures/api/ApiRequest.ts:8