StaticDirectory
krop.route.Response.StaticDirectory
final case class StaticDirectory(pathPrefix: Path) extends Response[Path]
Attributes
- Source
- Response.scala
Members list
Value members
Inherited methods
Produce this Response
if given Left[A]
, otherwise produce that Response
given Right[B]
.
Produce this Response
if given Left[A]
, otherwise produce that Response
given Right[B]
.
Attributes
- Inherited from:
- Response
- Source
- Response.scala
Produce this Response
if given Some[A]
, otherwise produce a 404 Response
.
Produce this Response
if given Some[A]
, otherwise produce a 404 Response
.
Attributes
- Inherited from:
- Response
- Source
- Response.scala
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Response
- Source
- Response.scala
Add headers to this Response. The headers can be any form that org.http4s.Header.ToRaw accepts, which is:
Add headers to this Response. The headers can be any form that org.http4s.Header.ToRaw accepts, which is:
- A value of type
A
which has aHeader[A]
in scope - A (name, value) pair of
String
, which is treated as aRecurring
header - A
Header.Raw
- A
Foldable
(List
,Option
, etc) of the above.
Attributes
- Inherited from:
- Response
- Source
- Response.scala
In this article