Skip to main content

Interface: Endpoint<US>

Defined in: net/server/server.ts:231

An Endpoint catches a request using its filter, and generates an appropriate response for the request. For every incoming request, all Endpoints are searched until the first filter hit is found. Thus, the order of Endpoint registration determines the search order.

In order to fulfill their job, Endpoints can consume Services offered by the server. See BaseService below.

Type Parameters​

Type Parameter
US extends Schema

Methods​

filter()​

filter(services, req, info): boolean

Defined in: net/server/server.ts:232

Parameters​

ParameterType
servicesServerServices<US>
reqGoatRequest
infoServeHandlerInfo

Returns​

boolean


processRequest()​

processRequest(services, req, info): Promise<Response>

Defined in: net/server/server.ts:237

Parameters​

ParameterType
servicesServerServices<US>
reqGoatRequest
infoServeHandlerInfo

Returns​

Promise<Response>