Documentation
    Preparing search index...

    Metadata of body.

    Describes how content-type being used in body, and whether encrypted or not.

    contracts/common.md#principled-implementation A body is described by its content type, which selects the encoding, and by whether it is encrypted, which selects the fetcher; the union keeps the common types visible while allowing any other string.

    contracts/common.md#clear-and-simple-design Two fields, one of them optional.

    contracts/common.md#prohibited-implementation-shortcuts It is a type and adds no runtime behavior.

    contracts/common.md#meaningful-documentation The comment states that it describes the content type and the encryption.

    interface IBody {
        encrypted?: boolean;
        type:
            | string & {}
            | "application/json"
            | "application/x-www-form-urlencoded"
            | "multipart/form-data"
            | "text/plain";
    }
    Index
    encrypted?: boolean
    type:
        | string & {}
        | "application/json"
        | "application/x-www-form-urlencoded"
        | "multipart/form-data"
        | "text/plain"