akka.http.scaladsl.server.directives
RespondWithDirectives
Companion trait RespondWithDirectives
object RespondWithDirectives extends RespondWithDirectives
- Grouped
- Alphabetic
- By Inheritance
- RespondWithDirectives
- RespondWithDirectives
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Response directives
-
def
respondWithDefaultHeader(responseHeader: HttpHeader): Directive0
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.
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.
- Definition Classes
- RespondWithDirectives
-
def
respondWithDefaultHeaders(responseHeaders: Seq[HttpHeader]): Directive0
Adds the given response headers to all HTTP responses of its inner Route, if a header already exists it is not added again.
Adds the given response headers to all HTTP responses of its inner Route, if a header already exists it is not added again.
- Definition Classes
- RespondWithDirectives
-
def
respondWithHeader(responseHeader: HttpHeader): Directive0
Unconditionally adds the given response header to all HTTP responses of its inner Route.
Unconditionally adds the given response header to all HTTP responses of its inner Route.
- Definition Classes
- RespondWithDirectives
-
def
respondWithHeaders(responseHeaders: Seq[HttpHeader]): Directive0
Unconditionally adds the given response headers to all HTTP responses of its inner Route.
Unconditionally adds the given response headers to all HTTP responses of its inner Route.
- Definition Classes
- RespondWithDirectives
Ungrouped
-
def
respondWithDefaultHeaders(responseHeaders: HttpHeader*): Directive0
- Definition Classes
- RespondWithDirectives
-
def
respondWithHeaders(responseHeaders: HttpHeader*): Directive0
- Definition Classes
- RespondWithDirectives