Generated API snapshot
@askrjs/server/http
Exports from the declarations published in @askrjs/server 0.0.3. Signatures are generated from the installed artifact.
@askrjs/server/http0.0.3
Exports
This entrypoint publishes 30 exports. Use the anchored symbol rows for direct links. Type-only exports are labeled separately from runtime values.
acceptedtype
accepted: (value?: JsonValue, init?: ResponseInit) => Responsebadtype
bad: (detail?: string, init?: ResponseInit) => ResponsebadRequesttype
badRequest: (detail?: string, init?: ResponseInit) => Responsechallengetype
challenge: (options?: ChallengeOptions) => ResponseclearCookietype
clearCookie: (response: Response, name: string, options?: CookieOptions) => Responseconflicttype
conflict: (detail?: string, init?: ResponseInit) => Responsecreatedtype
created: (value?: JsonValue, init?: ResponseInit) => ResponsecreateEventStreamtype
createEventStream: (options?: EventStreamOptions) => EventStreamerrortype
error: (status?: number, detail?: string, init?: ResponseInit) => ResponseEventStreamtype
EventStream: anyEventStreamOptionstype
EventStreamOptions: anyforbiddentype
forbidden: (detail?: string, init?: ResponseInit) => ResponseformatServerSentEventtype
formatServerSentEvent: (event: ServerSentEvent) => stringinternalServerErrortype
internalServerError: (detail?: string, init?: ResponseInit) => Responsejsontype
json: (value: JsonValue, init?: ResponseInit) => ResponsemethodNotAllowedtype
methodNotAllowed: (allow?: string | readonly string[], init?: ResponseInit) => ResponsenoContenttype
noContent: (init?: ResponseInit) => ResponsenotFoundtype
notFound: (detail?: string, init?: ResponseInit) => ResponsenotImplementedtype
notImplemented: (detail?: string, init?: ResponseInit) => Responseoktype
ok: (value?: JsonValue, init?: ResponseInit) => Responseproblemtype
problem: (status: number, detail?: string, options?: ProblemOptions & { init?: ResponseInit; }) => Responseredirecttype
redirect: (location: string, status?: 301 | 302 | 303 | 307 | 308) => ResponseserverErrortype
serverError: (detail?: string, init?: ResponseInit) => ResponseServerSentEventtype
ServerSentEvent: 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) => Response