package http
HTTP protocol
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- http
- Http
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
trait
Entity
[A] extends AnyRef
Content that can be converted to a Request
-
case class
Header
(name: String, value: String) extends Product with Serializable
An HTTP header
- trait HeaderConstruction extends AnyRef
- trait HeaderNames extends AnyRef
- case class Headers extends Product with Serializable
-
trait
Http
extends AnyRef
Module API
- type HttpAction[A] = Kleisli[[β$0$]Either[HttpError, β$0$], Interpreter, A]
- sealed trait HttpError extends AnyRef
-
case class
Message
(headers: Headers, body: ByteVector) extends Product with Serializable
An HTTP message
- sealed trait Method extends EnumEntry
-
trait
NetProtocol
extends AnyRef
Operations not defined by this protocol can be done using the net package directly
-
trait
Render
[A] extends Serializable
Rendering of data structures into bytes
-
case class
Request
(method: Method, resource: Resource, message: Message) extends Product with Serializable
An HTTP request
- case class Resource (path: Option[String] = None, query: Option[String] = None, fragment: Option[String] = None) extends Product with Serializable
-
case class
Response
(status: Status, headers: Headers, body: ByteVector) extends Product with Serializable
An HTTP response
- final case class Status (value: Int) extends AnyVal with Product with Serializable
- case class Url (protocol: String, auth: Option[String], host: String, port: Option[Port], resource: Resource) extends Product with Serializable
Value Members
-
val
HttpVersion: ByteVector
- Definition Classes
- Http
-
def
buildRequest[A](method: Method, url: Url, data: A, userHeaders: Headers)(implicit arg0: Entity[A]): Request
- Definition Classes
- Http
-
def
dispatch(url: Url, r: Request): HttpAction[Response]
Dispatches a request yielding a response for it
Dispatches a request yielding a response for it
- Definition Classes
- Http
-
def
run[A](command: HttpAction[A]): Either[HttpError, A]
- Definition Classes
- Http
- object Entity
- object Header extends HeaderConstruction with Serializable
- object HeaderNames extends HeaderNames
- object Headers extends Serializable
- object HttpAction
- object HttpError
- object Message extends Serializable
- object Method extends Enum[Method]
- object NetProtocol
- object Render extends Serializable
- object Request extends Serializable
- object Resource extends Serializable
- object Status extends Serializable
- object Url extends Serializable