AhcHttpClient

class AhcHttpClient(config: AsyncHttpClientConfig) extends ReactiveHttpClient
Companion
object
class ReactiveHttpClient
class HttpClient
trait AutoCloseable
class Object
trait Matchable
class Any

Value members

Constructors

def this(config: Config)

Concrete methods

def buildRequest(request: Request): Request

Creates and returns an AHC request, running all operations on it.

Creates and returns an AHC request, running all operations on it.

def close(): Unit
def download(request: Request, file: File): Future[File]
def processFull(request: Request): Future[FullResponse]

Executes the request and return a Future of FullResponse. Does not error on non-OK response.

Executes the request and return a Future of FullResponse. Does not error on non-OK response.

def processFull[A](request: Request, f: FullResponse => A): Future[A]

Executes the request and return a Future of A. Does not error on non-OK response.

Executes the request and return a Future of A. Does not error on non-OK response.

def processFull[A](request: Request, lifter: FutureLifter[A])(implicit ec: ExecutionContext): Future[Either[Throwable, A]]

Executes the request and return a Future of Either a Response or a Throwable. Does not error on non-OK response.

Executes the request and return a Future of Either a Response or a Throwable. Does not error on non-OK response.

def processFull[A](request: Request, handler: AhcCompletionHandler[A]): Future[A]

Executes the request. Does not error on non-OK response.

Executes the request. Does not error on non-OK response.

def processStream(request: Request): Future[StreamResponse]

Executes the request and return a Future of StreamResponse. Does not error on non-OK response.

Executes the request and return a Future of StreamResponse. Does not error on non-OK response.

def processStream[A](request: Request, f: StreamResponse => Future[A]): Future[A]

Executes the request and return a Future of A. Does not error on non-OK response.

Executes the request and return a Future of A. Does not error on non-OK response.

def processStream[A](request: Request, handler: AhcStreamHandler[A]): Future[A]

Executes the request and return a Future of A. Does not error on non-OK response.

Executes the request and return a Future of A. Does not error on non-OK response.

def run(request: Request): Future[FullResponse]

Runs the request and return a Future of FullResponse.

Runs the request and return a Future of FullResponse.

def run[A](request: Request, f: FullResponse => A): Future[A]

Runs the request and return a Future of A.

Runs the request and return a Future of A.

def run[A](request: Request, lifter: FutureLifter[A])(implicit ec: ExecutionContext): Future[Either[Throwable, A]]

Runs the request and return a Future of Either a FullResponse or a Throwable.

Runs the request and return a Future of Either a FullResponse or a Throwable.

def runStream(request: Request): Future[StreamResponse]

Runs the request and return a Future of StreamResponse.

Runs the request and return a Future of StreamResponse.

def runStream[A](request: Request, f: StreamResponse => Future[A]): Future[A]

Runs the request and return a Future of A.

Runs the request and return a Future of A.

override
def toString: String
Definition Classes
Any
def underlying[A]: A
def websocket(request: Request)(handler: PartialFunction[WebSocketEvent, Unit]): Future[WebSocket]

Open a websocket connection.

Open a websocket connection.