Http

io.eezo.http.client.Http
See theHttp companion class
object Http

Attributes

Companion
class
Source
Http.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Http.type

Members list

Value members

Concrete methods

def delete(url: String, headers: (String, String)*): Reply

Attributes

Source
Http.scala
def form(fields: (String, String)*): Content

A form body, as an API such as Stripe's expects one, so no application encodes it by hand.

A form body, as an API such as Stripe's expects one, so no application encodes it by hand.

The pairs go out in the order given and a repeated name is sent each time, because a form is a list and not a map: the receiving side reads repeats as one field with several values, in the order they arrived. Bracketed names such as line_items[0][quantity] are the caller's to spell, since what the brackets mean is the receiving API's convention and not the encoding's.

Attributes

Source
Http.scala
def get(url: String, headers: (String, String)*): Reply

Attributes

Source
Http.scala
def post(url: String, body: String, contentType: String = ..., headers: (String, String)*): Reply

Attributes

Source
Http.scala
def post(url: String, content: Content, headers: (String, String)*): Reply

Attributes

Source
Http.scala
def put(url: String, body: String, contentType: String = ..., headers: (String, String)*): Reply

Attributes

Source
Http.scala
def withTimeout(timeout: Duration): Http

The same calls under another deadline, for the caller who knows better.

The same calls under another deadline, for the caller who knows better.

Attributes

Source
Http.scala

Concrete fields

Ten seconds to connect and ten to answer: long enough for a slow API, short enough that a page loop waiting on io.eezo.http.client.Reply is never parked into next week.

Ten seconds to connect and ten to answer: long enough for a slow API, short enough that a page loop waiting on io.eezo.http.client.Reply is never parked into next week.

Attributes

Source
Http.scala