Class HttpOriginMatcher$

java.lang.Object
org.apache.pekko.http.cors.scaladsl.model.HttpOriginMatcher$

public class HttpOriginMatcher$ extends Object
  • Field Details

    • MODULE$

      public static final HttpOriginMatcher$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • HttpOriginMatcher$

      public HttpOriginMatcher$()
  • Method Details

    • strict

      public HttpOriginMatcher strict(scala.collection.immutable.Seq<HttpOrigin> origins)
      Build a matcher that will accept any of the given origins. Wildcard in the hostname will not be interpreted.
      Parameters:
      origins - (undocumented)
      Returns:
      (undocumented)
    • apply

      public HttpOriginMatcher apply(scala.collection.immutable.Seq<HttpOrigin> origins)
      Build a matcher that will accept any of the given origins. Hostname starting with *. will match any sub-domain. The scheme and the port are always strictly matched.
      Parameters:
      origins - (undocumented)
      Returns:
      (undocumented)