Documentation

Std.Http.Data.Method

Method #

This module provides the Method type that represents HTTP request methods. It defines all IANA-registered HTTP methods as distinct constructors, including standard methods (e.g. GET, POST, PUT, DELETE) and extension methods from WebDAV, CalDAV, and other specifications. Unrecognized method strings produce none from ofString?.

References:

A method is a verb that describes the action to be performed.

Covers all methods in the IANA HTTP Method Registry.

Instances For
    Equations
    Instances For
      Equations
      Instances For
        @[instance_reducible]
        Equations

        Converts a String into a Method. Returns none for unrecognized method strings.

        Equations
        Instances For

          Converts a String into a Method, panicking if unrecognized.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            Returns true for HTTP methods that RFC 9110 §9.2.2 designates as idempotent — methods that can be safely retried because repeating the request has the same effect as issuing it once.

            Reference: https://httpwg.org/specs/rfc9110.html#idempotent.methods

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              Returns true for HTTP methods that RFC 9110 §9.2.1 designates as safe — read-only methods that do not modify resource state.

              Reference: https://httpwg.org/specs/rfc9110.html#safe.methods

              Equations
              Instances For

                Returns false for the methods whose semantics anticipate no request content: those RFC 9110 §8.6 tells a user agent not to send Content-Length for when the request carries none.

                Reference: https://httpwg.org/specs/rfc9110.html#field.content-length

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  @[instance_reducible]
                  Equations
                  • One or more equations did not get rendered due to their size.
                  @[instance_reducible]
                  Equations

                  Every method, the most commonly used first.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For

                    all lists every method, so a constructor added to Method fails this proof until it is listed.