Skip to content

Instantly share code, notes, and snippets.

@purefn
Created October 20, 2015 00:12
Show Gist options
  • Save purefn/9dc1784b14f40f8766a0 to your computer and use it in GitHub Desktop.
Save purefn/9dc1784b14f40f8766a0 to your computer and use it in GitHub Desktop.
final case class Request
( method: Method
, uri: Uri
, httpVersion: HttpVersion
, headers: CI[String] ==>> IList[String]
, body: EntityBody
)
final case class Response
( method: Method
, httpVersion: HttpVersion
, headers: CI[String] ==>> IList[String]
, body: EntityBody
)
sealed trait HttpcOps[A]
object HttpcOps {
final case class Send(req: Request) extends HttpcOps[Response]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment