Skip to content
rw3iss Auth

~~Interface: HttpTransportPort~~

Interface: HttpTransportPort

Defined in: auth-server-ts/src/contracts/transport.ts:54

Deprecated

Use HttpTransport instead. Kept for back-compat with the original AuthHttpClient / ServiceAuthClient classes and the NestJS adapter’s AxiosHttpTransportAdapter. New code should implement HttpTransport directly. Will be removed once the NestJS adapter migrates (planned for the v0.4 / v1.0 platform release).

Methods

get()

get<T>(url, config?): Promise<HttpResponse<T>>

Defined in: auth-server-ts/src/contracts/transport.ts:55

Type Parameters

T

T = unknown

Parameters

url

string

config?

HttpRequestConfig

Returns

Promise<HttpResponse<T>>


post()

post<T>(url, body?, config?): Promise<HttpResponse<T>>

Defined in: auth-server-ts/src/contracts/transport.ts:56

Type Parameters

T

T = unknown

Parameters

url

string

body?

unknown

config?

HttpRequestConfig

Returns

Promise<HttpResponse<T>>