Interface RespondWithDirectives
- All Known Subinterfaces:
Directives
- All Known Implementing Classes:
Directives$
,HttpApp
,RespondWithDirectives$
public interface RespondWithDirectives
-
Method Summary
Modifier and TypeMethodDescriptionDirective<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.
-
Method Details
-
respondWithHeader
Unconditionally adds the given response header to all HTTP responses of its inner Route.- Parameters:
responseHeader
- (undocumented)- Returns:
- (undocumented)
-
respondWithDefaultHeader
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.- Parameters:
responseHeader
- (undocumented)- Returns:
- (undocumented)
-
respondWithHeaders
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.- Parameters:
firstHeader
- (undocumented)otherHeaders
- (undocumented)- Returns:
- (undocumented)
-
respondWithHeaders
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.- Parameters:
responseHeaders
- (undocumented)- Returns:
- (undocumented)
-
respondWithDefaultHeaders
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.- Parameters:
firstHeader
- (undocumented)otherHeaders
- (undocumented)- Returns:
- (undocumented)
-
respondWithDefaultHeaders
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.- Parameters:
responseHeaders
- (undocumented)- Returns:
- (undocumented)
-