- Companion:
- object
trait OkHttpBackend
class HttpClientF[IO]
trait HttpClient[IO]
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any
Type members
Inherited classlikes
Value members
Inherited methods
def download(url: FullUrl, to: Path, headers: Map[String, String]): IO[Either[StatusError, StorageSize]]
Downloads url
to to
, returning the number of bytes written to to
.
Downloads url
to to
, returning the number of bytes written to to
.
- Value parameters:
- headers
http headers
- to
destination, a file
- url
url to download
- Returns:
bytes written
- Inherited from:
- HttpClient
def multiPart(url: FullUrl, headers: Map[String, String], parts: Map[String, String], files: Seq[MultiPartFile]): IO[OkHttpResponse]
- Inherited from:
- HttpClient
Parses the response as a T.
Parses the response as a T.
The returned Future fails with a ResponseError if parsing fails.
- Type parameters:
- T
type to parse
- Value parameters:
- response
HTTP response
- url
the request URL
- Returns:
a parsed response
- Inherited from:
- HttpClient
def postFile(url: FullUrl, mediaType: MediaType, file: Path, headers: Map[String, String]): IO[OkHttpResponse]
- Inherited from:
- HttpClient
def postForm(url: FullUrl, form: Map[String, String], headers: Map[String, String]): IO[OkHttpResponse]
- Inherited from:
- HttpClient
def postFormAs[T : Decoder](url: FullUrl, form: Map[String, String], headers: Map[String, String]): IO[T]
- Inherited from:
- HttpClient