class OHttpClient extends OHttpClientBase
HTTP Client without any authentication / authorization.
- Alphabetic
- By Inheritance
- OHttpClient
- OHttpClientBase
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new OHttpClient()(implicit system: ActorSystem, materializer: Materializer, settings: OHttpClientSettings)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
akkaHttpRequest(request: OHttpRequest, rawSettings: Option[ConnectionPoolSettings]): Future[HttpResponse]
Makes an HTTP request.
Makes an HTTP request. (internal API)
- request
Request as
OHttpRequest
.- rawSettings
(Advanced) Raw
ConnectionPoolSettings
for each request. NotNone
value overrides the client'ssettings
.- returns
Same as the result of the
callback
.
- Attributes
- protected
- Definition Classes
- OHttpClientBase
-
final
def
apply(request: OHttpRequest, ignoreBody: Boolean = false): Future[OHttpResponse]
Equivalent to
makeRequest
. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
val
executionContext: ExecutionContextExecutor
- Definition Classes
- OHttpClientBase
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
makeRequest(request: OHttpRequest, ignoreBody: Boolean = false, rawSettings: Option[ConnectionPoolSettings] = None): Future[OHttpResponse]
Makes an HTTP request and receive the response and the body at the same time.
Makes an HTTP request and receive the response and the body at the same time. Automatically consumes the data byte stream of the response body.
- request
Request as
OHttpRequest
.- ignoreBody
If
true
, the response body is ignored and discarded. The default isfalse
.- rawSettings
(Advanced) Raw
ConnectionPoolSettings
for each request. NotNone
value overrides the client'ssettings
.- returns
Future
forOHttpResponse
.
-
def
makeRequestWithCallback[R](request: OHttpRequest, rawSettings: Option[ConnectionPoolSettings] = None)(callback: (HttpResponse) ⇒ R): Future[R]
Makes an HTTP request.
Makes an HTTP request. (for advanced use)
When the response is arrived, this function passes it to the given
callback
function that converts data bytes of the response body into some modeled data.By Akka's stream nature,
callback
must consume data bytes of the response body.- request
Request as
OHttpRequest
.- rawSettings
(Advanced) Raw
ConnectionPoolSettings
for each request. NotNone
value overrides the client'ssettings
.- callback
Callback function.
- returns
Same as the result of the
callback
.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toStrictAndWrap(response: HttpResponse): Future[OHttpResponse]
Receives the entire response body and wraps it.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )