Class HttpMethods

java.lang.Object
akka.http.javadsl.model.HttpMethods

public final class HttpMethods extends Object
Contains static constants for predefined method types.
  • Field Details

  • Method Details

    • custom

      @Deprecated public static HttpMethod custom(String value, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance)
      Deprecated.
      The created method will compute the presence of Content-Length headers based on deprecated logic (before issue #4213).
      Create a custom method type.
    • custom

      public static HttpMethod custom(String value, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance, boolean contentLengthAllowed)
      Create a custom method type.
    • lookup

      public static Optional<HttpMethod> lookup(String name)
      Looks up a predefined HTTP method with the given name.