DoxigAlpha

class

Function parameters

Parameters

#

Type definitions in this namespace

Types

#
Method
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods
Status
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
TransferEncoding
compression is intentionally omitted here since it is handled in `ContentEncoding`.
BodyWriter
Request or response body.

Source

Implementation

#
pub fn class(self: Status) Class {
    return switch (@intFromEnum(self)) {
        100...199 => .informational,
        200...299 => .success,
        300...399 => .redirect,
        400...499 => .client_error,
        else => .server_error,
    };
}