HttpClientF
com.malliina.http.io.HttpClientF
abstract class HttpClientF[F[_]]()(implicit F: MonadError[F, Throwable]) extends HttpClient[F]
Attributes
- Graph
-
- Supertypes
-
trait HttpClient[F]trait Closeabletrait AutoCloseableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class HttpClientF2[F]class HttpClientIO
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- HttpClient
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
Attributes
- Definition Classes
-
HttpClient
Attributes
- Definition Classes
-
HttpClient
Attributes
- Definition Classes
-
HttpClient
Attributes
- Definition Classes
-
HttpClient
Inherited methods
Attributes
- Inherited from:
- HttpClient
def download(url: FullUrl, to: Path, headers: Map[String, String]): F[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
Attributes
- Returns
-
bytes written
- Inherited from:
- HttpClient
Attributes
- Inherited from:
- HttpClient
Attributes
- Inherited from:
- HttpClient
def multiPart(url: FullUrl, headers: Map[String, String], parts: Map[String, String], files: Seq[MultiPartFile]): F[OkHttpResponse]
Attributes
- 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
Attributes
- Returns
-
a parsed response
- Inherited from:
- HttpClient
Attributes
- Inherited from:
- HttpClient
Attributes
- Inherited from:
- HttpClient
def postFile(url: FullUrl, mediaType: MediaType, file: Path, headers: Map[String, String]): F[OkHttpResponse]
Attributes
- Inherited from:
- HttpClient
def postForm(url: FullUrl, form: Map[String, String], headers: Map[String, String]): F[OkHttpResponse]
Attributes
- Inherited from:
- HttpClient
def postFormAs[T : Decoder](url: FullUrl, form: Map[String, String], headers: Map[String, String]): F[T]
Attributes
- Inherited from:
- HttpClient
Attributes
- Inherited from:
- HttpClient
Attributes
- Inherited from:
- HttpClient
Attributes
- Inherited from:
- HttpClient
Attributes
- Inherited from:
- HttpClient
In this article