RespondWithDirectives

pl.iterators.stir.server.directives.RespondWithDirectives
See theRespondWithDirectives companion object

Attributes

Companion
object
Source
RespondWithDirectives.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def respondWithDefaultHeader(responseHeader: Raw): 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.

Attributes

Source
RespondWithDirectives.scala
def respondWithDefaultHeaders(responseHeaders: Seq[Raw]): 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

Source
RespondWithDirectives.scala
def respondWithDefaultHeaders(firstHeader: Raw, otherHeaders: Raw*): 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

Source
RespondWithDirectives.scala
def respondWithHeader(responseHeader: Raw): 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

Source
RespondWithDirectives.scala
def respondWithHeaders[A](responseHeaders: Seq[Raw]): 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

Source
RespondWithDirectives.scala
def respondWithHeaders(firstHeader: Raw, otherHeaders: Raw*): Directive0

Attributes

Source
RespondWithDirectives.scala