Generated API snapshot
@askrjs/server
Exports from the declarations published in @askrjs/server 0.0.3. Signatures are generated from the installed artifact.
@askrjs/server0.0.3
Exports
This entrypoint publishes 70 exports. Use the anchored symbol rows for direct links. Type-only exports are labeled separately from runtime values.
acceptedtype
accepted: (value?: JsonValue, init?: ResponseInit) => ResponseApiRoutetype
ApiRoute: anyApiRouteOptionstype
ApiRouteOptions: anyAuthCredentialstype
AuthCredentials: anyAuthRouteErrortype
AuthRouteError: typeof AuthRouteErrorAuthRouteOptionstype
AuthRouteOptions: anybadtype
bad: (detail?: string, init?: ResponseInit) => ResponsebadRequesttype
badRequest: (detail?: string, init?: ResponseInit) => Responsebindtype
bind: <T extends object = Record<string, unknown>>(context: BindContext) => Promise<T>BindContexttype
BindContext: anyBindingErrortype
BindingError: typeof BindingErrorchallengetype
challenge: (options?: ChallengeOptions) => ResponseChallengeOptionstype
ChallengeOptions: anyclearCookietype
clearCookie: (response: Response, name: string, options?: CookieOptions) => Responseconflicttype
conflict: (detail?: string, init?: ResponseInit) => ResponseCookieOptionstype
CookieOptions: anyCookieSameSitetype
CookieSameSite: anycreatedtype
created: (value?: JsonValue, init?: ResponseInit) => ResponsecreateEventStreamtype
createEventStream: (options?: EventStreamOptions) => EventStreamcreateRoutertype
createRouter: () => RoutercreateServerApptype
createServerApp: { (router: Router): ServerApp; (options?: ServerAppOptions): ServerApp; }defineRoutestype
defineRoutes: (definition: (route: RouteBuilder) => void) => ApiRoute[]errortype
error: (status?: number, detail?: string, init?: ResponseInit) => ResponseEventStreamtype
EventStream: anyEventStreamOptionstype
EventStreamOptions: anyforbiddentype
forbidden: (detail?: string, init?: ResponseInit) => ResponseformatServerSentEventtype
formatServerSentEvent: (event: ServerSentEvent) => stringHandlertype
Handler: anyinternalServerErrortype
internalServerError: (detail?: string, init?: ResponseInit) => Responsejsontype
json: (value: JsonValue, init?: ResponseInit) => ResponseJsonValuetype
JsonValue: anymethodNotAllowedtype
methodNotAllowed: (allow?: string | readonly string[], init?: ResponseInit) => ResponseMiddlewaretype
Middleware: anyNexttype
Next: anynoContenttype
noContent: (init?: ResponseInit) => ResponsenotFoundtype
notFound: (detail?: string, init?: ResponseInit) => ResponsenotImplementedtype
notImplemented: (detail?: string, init?: ResponseInit) => Responseoktype
ok: (value?: JsonValue, init?: ResponseInit) => ResponseParamstype
Params: anyPathParamstype
PathParams: anyProbeHandlertype
ProbeHandler: anyProbeOptionstype
ProbeOptions: anyProbeResulttype
ProbeResult: anyproblemtype
problem: (status: number, detail?: string, options?: ProblemOptions & { init?: ResponseInit; }) => ResponseProblemtype
Problem: anyProblemOptionstype
ProblemOptions: anyredirecttype
redirect: (location: string, status?: 301 | 302 | 303 | 307 | 308) => ResponseregisterAuthRoutestype
registerAuthRoutes: <Dependencies, P extends Principal>(api: Pick<ApiDefinition<Dependencies>, "group">, options: AuthRouteOptions<P>) => voidRequestStatetype
RequestState: anyRouteBuildertype
RouteBuilder: anyRoutertype
Router: anysafeRedirecttype
safeRedirect: (fallback: string, options?: SafeRedirectOptions) => (value: unknown) => stringSafeRedirectOptionstype
SafeRedirectOptions: anyServerApptype
ServerApp: anyServerAppOptionstype
ServerAppOptions: anyServerContexttype
ServerContext: anyserverErrortype
serverError: (detail?: string, init?: ResponseInit) => ResponseServerSentEventtype
ServerSentEvent: anyServerTelemetrytype
ServerTelemetry: anyServerTelemetryFieldstype
ServerTelemetryFields: anyServerTelemetryOperationtype
ServerTelemetryOperation: anyserviceUnavailabletype
serviceUnavailable: (detail?: string, init?: ResponseInit) => ResponsesetCookietype
setCookie: (response: Response, name: string, value: string, options?: CookieOptions) => Responsetexttype
text: (value: string, init?: ResponseInit) => ResponsetooManyRequeststype
tooManyRequests: (detail?: string, init?: ResponseInit) => Responseunauthorizedtype
unauthorized: (detail?: string, init?: ResponseInit) => ResponseunprocessableEntitytype
unprocessableEntity: (detail?: string, init?: ResponseInit) => ResponseWebSocketAdaptertype
WebSocketAdapter: anyWebSocketHandlertype
WebSocketHandler: anyWebSocketLiketype
WebSocketLike: any