zkc-long/faultcanvas/core does not have a README file

    pub(all) struct Header {
    name : String
    value : String
    } derive(Eq,
    Debug
    )

    A normalized HTTP header. Lookup is case-insensitive, while the original spelling is retained for forwarding and diagnostics.

    Header::equal

    fn Header::equal(Header, Header) -> Bool

    Header::new

    fn Header::new(name : String, value : String) -> Header

    Header::not_equal

    fn Header::not_equal(x : Header, y : Header) -> Bool

    Header::to_repr

    HttpRequest

    pub(all) struct HttpRequest {
    verb : String
    path : String
    query : Array[QueryParam]
    headers : Array[Header]
    body : String
    } derive(Eq,
    Debug
    )

    The transport-independent request consumed by the matcher.

    HttpRequest::equal

    fn HttpRequest::equal(HttpRequest, HttpRequest) -> Bool

    HttpRequest::header

    fn HttpRequest::header(self : HttpRequest, name : String) -> String?

    HttpRequest::new

    fn HttpRequest::new(verb : String, path : String, query : Array[QueryParam], headers : Array[Header], body : String) -> HttpRequest

    HttpRequest::not_equal

    fn HttpRequest::not_equal(x : HttpRequest, y : HttpRequest) -> Bool

    HttpRequest::query_first

    fn HttpRequest::query_first(self : HttpRequest, name : String) -> String?

    HttpRequest::validate

    fn HttpRequest::validate(self : HttpRequest, limits : RequestLimits) -> Result[Unit, ValidationError]

    HttpResponse

    pub(all) struct HttpResponse {
    status : Int
    headers : Array[Header]
    body : String
    } derive(Eq,
    Debug
    )

    HttpResponse::equal

    HttpResponse::new

    fn HttpResponse::new(status : Int, headers : Array[Header], body : String) -> HttpResponse

    HttpResponse::not_equal

    fn HttpResponse::not_equal(x : HttpResponse, y : HttpResponse) -> Bool

    HttpResponse::validate

    fn HttpResponse::validate(self : HttpResponse) -> Result[Unit, ValidationError]

    QueryParam

    pub(all) struct QueryParam {
    name : String
    value : String
    } derive(Eq,
    Debug
    )

    QueryParam::equal

    fn QueryParam::equal(QueryParam, QueryParam) -> Bool

    QueryParam::new

    fn QueryParam::new(name : String, value : String) -> QueryParam

    QueryParam::not_equal

    fn QueryParam::not_equal(x : QueryParam, y : QueryParam) -> Bool

    RequestLimits

    pub(all) struct RequestLimits {
    max_headers : Int
    max_body_chars : Int
    } derive(Eq,
    Debug
    )

    RequestLimits::equal

    RequestLimits::not_equal

    fn RequestLimits::not_equal(x : RequestLimits, y : RequestLimits) -> Bool

    RequestLimits::safe_defaults

    fn RequestLimits::safe_defaults() -> RequestLimits

    ValidationError

    pub(all) enum ValidationError {
    EmptyMethod
    InvalidPath(String)
    TooManyHeaders(actual~ : Int, limit~ : Int)
    BodyTooLarge(actual~ : Int, limit~ : Int)
    InvalidStatus(Int)
    } derive(Eq,
    Debug
    )

    ValidationError::equal

    ValidationError::not_equal

    fn ValidationError::not_equal(x : ValidationError, y : ValidationError) -> Bool

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io