public interface RespondWithDirectives
Modifier and Type | Method and Description |
---|---|
Directive<scala.runtime.BoxedUnit> |
respondWithDefaultHeader(HttpHeader responseHeader)
Adds the given response header to all HTTP responses of its inner Route,
if the response from the inner Route doesn't already contain a header with the same name.
|
Directive<scala.runtime.BoxedUnit> |
respondWithDefaultHeaders(HttpHeader firstHeader,
scala.collection.immutable.Seq<HttpHeader> otherHeaders)
Adds the given response headers to all HTTP responses of its inner Route,
if a header already exists it is not added again.
|
Directive<scala.runtime.BoxedUnit> |
respondWithDefaultHeaders(scala.collection.immutable.Seq<HttpHeader> responseHeaders)
Adds the given response headers to all HTTP responses of its inner Route,
if a header already exists it is not added again.
|
Directive<scala.runtime.BoxedUnit> |
respondWithHeader(HttpHeader responseHeader)
Unconditionally adds the given response header to all HTTP responses of its inner Route.
|
Directive<scala.runtime.BoxedUnit> |
respondWithHeaders(HttpHeader firstHeader,
scala.collection.immutable.Seq<HttpHeader> otherHeaders)
Unconditionally adds the given response headers to all HTTP responses of its inner Route.
|
Directive<scala.runtime.BoxedUnit> |
respondWithHeaders(scala.collection.immutable.Seq<HttpHeader> responseHeaders)
Unconditionally adds the given response headers to all HTTP responses of its inner Route.
|
Directive<scala.runtime.BoxedUnit> respondWithHeader(HttpHeader responseHeader)
responseHeader
- (undocumented)Directive<scala.runtime.BoxedUnit> respondWithDefaultHeader(HttpHeader responseHeader)
responseHeader
- (undocumented)Directive<scala.runtime.BoxedUnit> respondWithHeaders(HttpHeader firstHeader, scala.collection.immutable.Seq<HttpHeader> otherHeaders)
firstHeader
- (undocumented)otherHeaders
- (undocumented)Directive<scala.runtime.BoxedUnit> respondWithHeaders(scala.collection.immutable.Seq<HttpHeader> responseHeaders)
responseHeaders
- (undocumented)Directive<scala.runtime.BoxedUnit> respondWithDefaultHeaders(HttpHeader firstHeader, scala.collection.immutable.Seq<HttpHeader> otherHeaders)
firstHeader
- (undocumented)otherHeaders
- (undocumented)Directive<scala.runtime.BoxedUnit> respondWithDefaultHeaders(scala.collection.immutable.Seq<HttpHeader> responseHeaders)
responseHeaders
- (undocumented)