Attributes
- Companion
- object
- Source
- Response.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait HeaderChecks[Response]trait HeaderGetterstrait HeaderModifier[Response]class Objecttrait Matchableclass AnyShow all
- Self type
Members list
Value members
Concrete methods
Attributes
- Source
- Response.scala
Attributes
- Source
- Response.scala
Adds flash values to the cookie-based flash-scope.
Decodes the content of the body as a value based on a zio-schema zio.schema.codec.BinaryCodec.
Decodes the content of the body as a value based on a zio-schema zio.schema.codec.BinaryCodec.
Example for json:
import zio.schema.json.codec._
case class Person(name: String, age: Int)
implicit val schema: Schema[Person] = DeriveSchema.gen[Person]
val response = ???
val decodedPerson = response.to[Person]
Attributes
- Source
- Response.scala
Collects the potentially streaming body of the response into a single chunk.
Collects the potentially streaming body of the response into a single chunk.
Any errors that occur from the collection of the body will be caught and propagated to the Body
Attributes
- Source
- Response.scala
Attributes
- Source
- Response.scala
Consumes the streaming body fully and then discards it while also ignoring any failures
Consumes the streaming body fully and then discards it while also ignoring any failures
Attributes
- Source
- Response.scala
Attributes
- Source
- Response.scala
Sets the status of the response
Creates an Http from a Response
Updates the current Headers with new one, using the provided update function passed.
Updates the current Headers with new one, using the provided update function passed.
Attributes
- Definition Classes
- Source
- Response.scala
Inherited methods
Adds headers based on the given value. The type of the value must have a schema and be a case class and all fields will be added as headers. So fields must be of primitive types (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these. The header names are the field names.
Adds headers based on the given value. The type of the value must have a schema and be a case class and all fields will be added as headers. So fields must be of primitive types (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these. The header names are the field names.
Attributes
- Inherited from:
- HeaderModifier
- Source
- HeaderModifier.scala
Adds a header / headers with the specified name and based on the given value. The value type must have a schema and can be a primitive type (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these.
Adds a header / headers with the specified name and based on the given value. The value type must have a schema and can be a primitive type (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these.
Attributes
- Inherited from:
- HeaderModifier
- Source
- HeaderModifier.scala
Attributes
- Inherited from:
- HeaderModifier
- Source
- HeaderModifier.scala
Attributes
- Inherited from:
- HeaderModifier
- Source
- HeaderModifier.scala
Attributes
- Inherited from:
- HeaderModifier
- Source
- HeaderModifier.scala
Attributes
- Inherited from:
- HeaderModifier
- Source
- HeaderModifier.scala
Attributes
- Inherited from:
- HeaderChecks
- Source
- HeaderChecks.scala
Attributes
- Inherited from:
- HeaderChecks
- Source
- HeaderChecks.scala
Attributes
- Inherited from:
- HeaderChecks
- Source
- HeaderChecks.scala
Attributes
- Inherited from:
- HeaderChecks
- Source
- HeaderChecks.scala
Attributes
- Inherited from:
- HeaderChecks
- Source
- HeaderChecks.scala
Attributes
- Inherited from:
- HeaderChecks
- Source
- HeaderChecks.scala
Attributes
- Inherited from:
- HeaderChecks
- Source
- HeaderChecks.scala
Attributes
- Inherited from:
- HeaderChecks
- Source
- HeaderChecks.scala
Attributes
- Inherited from:
- HeaderChecks
- Source
- HeaderChecks.scala
Attributes
- Inherited from:
- HeaderChecks
- Source
- HeaderChecks.scala
Attributes
- Inherited from:
- HeaderChecks
- Source
- HeaderChecks.scala
Retrieves headers as a value of the specified type. The type must have a schema and be a case class and all fields must be headers. So fields must be of primitive types (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these. Headers are selected by field names.
Retrieves headers as a value of the specified type. The type must have a schema and be a case class and all fields must be headers. So fields must be of primitive types (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these. Headers are selected by field names.
Attributes
- Inherited from:
- HeaderGetters
- Source
- HeaderGetters.scala
Retrieves the header with the specified name as a value of the specified type. The type must have a schema and can be a primitive type (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these.
Retrieves the header with the specified name as a value of the specified type. The type must have a schema and can be a primitive type (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these.
Attributes
- Inherited from:
- HeaderGetters
- Source
- HeaderGetters.scala
Gets a header or returns None if the header was not present or it could not be parsed
Gets a header or returns None if the header was not present or it could not be parsed
Attributes
- Inherited from:
- HeaderGetters
- Source
- HeaderGetters.scala
Retrieves headers as a value of the specified type T, or returns a default value if the headers are not present or could not be parsed. The type T must have a schema and be a case class and all fields must be headers. So fields must be of primitive types (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these. Headers are selected by field names.
Retrieves headers as a value of the specified type T, or returns a default value if the headers are not present or could not be parsed. The type T must have a schema and be a case class and all fields must be headers. So fields must be of primitive types (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these. Headers are selected by field names.
Attributes
- Inherited from:
- HeaderGetters
- Source
- HeaderGetters.scala
Retrieves the header with the specified name as a value of the specified type T, or returns a default value if the header is not present or could not be parsed. The type T must have a schema and can be a primitive type (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these.
Retrieves the header with the specified name as a value of the specified type T, or returns a default value if the header is not present or could not be parsed. The type T must have a schema and can be a primitive type (e.g. Int, String, UUID, Instant etc.), a case class with a single field or a collection of either of these.
Attributes
- Inherited from:
- HeaderGetters
- Source
- HeaderGetters.scala
Gets a header. If the header is not present, returns None. If the header could not be parsed it returns the parsing error
Gets a header. If the header is not present, returns None. If the header could not be parsed it returns the parsing error
Attributes
- Inherited from:
- HeaderGetters
- Source
- HeaderGetters.scala
Attributes
- Inherited from:
- HeaderGetters
- Source
- HeaderGetters.scala
Attributes
- Inherited from:
- HeaderGetters
- Source
- HeaderGetters.scala
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Gets the raw unparsed header value
Gets the raw unparsed header value
Attributes
- Inherited from:
- HeaderGetters
- Source
- HeaderGetters.scala
Gets the raw unparsed header value
Gets the raw unparsed header value
Attributes
- Inherited from:
- HeaderGetters
- Source
- HeaderGetters.scala
Attributes
- Inherited from:
- HeaderGetters
- Source
- HeaderGetters.scala
Attributes
- Inherited from:
- HeaderModifier
- Source
- HeaderModifier.scala
Attributes
- Inherited from:
- HeaderModifier
- Source
- HeaderModifier.scala
Attributes
- Inherited from:
- HeaderModifier
- Source
- HeaderModifier.scala
Attributes
- Inherited from:
- HeaderModifier
- Source
- HeaderModifier.scala