Class HttpOriginMatcher$
java.lang.Object
org.apache.pekko.http.cors.scaladsl.model.HttpOriginMatcher$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HttpOriginMatcher$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(scala.collection.immutable.Seq<HttpOrigin> origins) Build a matcher that will accept any of the given origins.strict(scala.collection.immutable.Seq<HttpOrigin> origins) Build a matcher that will accept any of the given origins.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
HttpOriginMatcher$
public HttpOriginMatcher$()
-
-
Method Details
-
strict
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
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)
-