Fake Mirrors
    Preparing search index...

    Wrapper for HTTP message method.

    Constructors

    Accessors

    Methods

    • Get method value.

      Returns "HEAD" | "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS"

      Method string

    • Check if method matches the specified value(s).

      Parameters

      • arg:
            | "HEAD"
            | "GET"
            | "POST"
            | "PUT"
            | "PATCH"
            | "DELETE"
            | "OPTIONS"
            | ("HEAD" | "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS")[]

        Single method string or array of methods to check

      Returns boolean

      true if current method matches any of the provided methods

    • Set method value.

      Parameters

      • method: "HEAD" | "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS"

        Method to set

      Returns this

      This wrapper for method chaining

      If wrapper is frozen