atlantis
namespace Http
since 0.1.0-alpha.1linux
Types
- AccessLog
- App
- BadRequestException
- BodyLimit
- Builder
- ChunkedBody
- Context
- Deadline
- ErrorMapper
- FieldError
- ForbiddenException
- Health
- HttpException
- IActionResponse
- IHttpException
- IReadyCheck
- IValidationException
- Json
- NotFoundException
- PayloadTooLargeException
- Pipeline
- Redirect
- Respond
- Server
- SseStream
- StaticFiles
- Status
- UnauthorizedException
- ValidationException
- View
Functions
actionResult
actionResult(IActionResponse a, Context ctx) -> HttpResponsecanonicalize
canonicalize(string decoded) -> string | NonedeadlineRemaining
deadlineRemaining(Context c) -> inthasNul
hasNul(string s) -> boolhttpNow
httpNow() -> stringisoNow
isoNow() -> stringjsonQuote
jsonQuote(string s) -> stringmkResponse
mkResponse(int status, string body, Array<Pair<string, string>> headers) -> HttpResponsemkStreaming
mkStreaming(int status, Array<Pair<string, string>> headers, (ChunkedBody) => void writer) -> HttpResponsenextTick
nextTick() -> Promise<int>nowMs
nowMs() -> intreqContentLength
reqContentLength(HttpRequest r) -> intreqHeader
reqHeader(HttpRequest r, string name) -> string | NonereqHeaders
reqHeaders(HttpRequest r, string name) -> Array<string>sseHeaders
statusText
statusText(int status) -> string