RespondWithDirectives

org.apache.pekko.http.scaladsl.server.directives.RespondWithDirectives
See theRespondWithDirectives companion trait

Attributes

Companion
trait
Source
RespondWithDirectives.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Grouped members

response

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.

Attributes

Inherited from:
RespondWithDirectives
Source
RespondWithDirectives.scala

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.

Attributes

Inherited from:
RespondWithDirectives
Source
RespondWithDirectives.scala
def respondWithDefaultHeaders(firstHeader: HttpHeader, otherHeaders: 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.

Attributes

Inherited from:
RespondWithDirectives
Source
RespondWithDirectives.scala
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.

Attributes

Inherited from:
RespondWithDirectives
Source
RespondWithDirectives.scala
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.

Attributes

Inherited from:
RespondWithDirectives
Source
RespondWithDirectives.scala
def respondWithHeaders(firstHeader: HttpHeader, otherHeaders: 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.

Attributes

Inherited from:
RespondWithDirectives
Source
RespondWithDirectives.scala