public interface HostDirectives
Modifier and Type | Method and Description |
---|---|
Directive<scala.Tuple1<java.lang.String>> |
extractHost()
Extracts the hostname part of the Host request header value.
|
Directive<scala.runtime.BoxedUnit> |
host(scala.Function1<java.lang.String,java.lang.Object> predicate)
Rejects all requests for whose host name the given predicate function returns false.
|
Directive<scala.Tuple1<java.lang.String>> |
host(scala.util.matching.Regex regex)
Rejects all requests with a host name that doesn't have a prefix matching the given regular expression.
|
Directive<scala.runtime.BoxedUnit> |
host(scala.collection.immutable.Seq<java.lang.String> hostNames)
Rejects all requests with a host name different from the given ones.
|
Directive<scala.Tuple1<java.lang.String>> extractHost()
Directive<scala.runtime.BoxedUnit> host(scala.collection.immutable.Seq<java.lang.String> hostNames)
hostNames
- (undocumented)Directive<scala.runtime.BoxedUnit> host(scala.Function1<java.lang.String,java.lang.Object> predicate)
predicate
- (undocumented)Directive<scala.Tuple1<java.lang.String>> host(scala.util.matching.Regex regex)
regex
- (undocumented)