trait HttpClient[F[_], Req, Resp] extends HttpClientBase[F, Req, Resp] with AutoCloseable
Asynchronous HTTP Client interface
- F
An abstraction for Future type (e.g., Resolves the differences between Twitter Future, Scala Future, etc.)
- Annotations
- @deprecated
- Deprecated
(Since version 24.5.0) Use wvlet.airframe.http.client.Sync/AsyncClient
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- HttpClient
- AutoCloseable
- HttpClientBase
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
close(): Unit
- Definition Classes
- AutoCloseable
- Annotations
- @throws( classOf[java.lang.Exception] )
-
abstract
def
delete[OperationResponse](resourcePath: String, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[OperationResponse]): F[OperationResponse]
- Definition Classes
- HttpClientBase
-
abstract
def
deleteOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource], arg1: scala.reflect.api.JavaUniverse.TypeTag[OperationResponse]): F[OperationResponse]
- Definition Classes
- HttpClientBase
-
abstract
def
deleteRaw(resourcePath: String, requestFilter: (Req) ⇒ Req = identity): F[Resp]
- Definition Classes
- HttpClientBase
-
abstract
def
get[Resource](resourcePath: String, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource]): F[Resource]
- Definition Classes
- HttpClientBase
-
abstract
def
getResource[ResourceRequest, Resource](resourcePath: String, resourceRequest: ResourceRequest, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[ResourceRequest], arg1: scala.reflect.api.JavaUniverse.TypeTag[Resource]): F[Resource]
Send a get request using the ResourceRequest.
Send a get request using the ResourceRequest. ResourceRequest parameters will be expanded as URL query strings
- Definition Classes
- HttpClientBase
-
abstract
def
list[OperationResponse](resourcePath: String, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[OperationResponse]): F[OperationResponse]
- Definition Classes
- HttpClientBase
-
abstract
def
patch[Resource](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource]): F[Resource]
- Definition Classes
- HttpClientBase
-
abstract
def
patchOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource], arg1: scala.reflect.api.JavaUniverse.TypeTag[OperationResponse]): F[OperationResponse]
- Definition Classes
- HttpClientBase
-
abstract
def
patchRaw[Resource](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource]): F[Resp]
- Definition Classes
- HttpClientBase
-
abstract
def
post[Resource](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource]): F[Resource]
- Definition Classes
- HttpClientBase
-
abstract
def
postOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource], arg1: scala.reflect.api.JavaUniverse.TypeTag[OperationResponse]): F[OperationResponse]
- Definition Classes
- HttpClientBase
-
abstract
def
postRaw[Resource](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource]): F[Resp]
- Definition Classes
- HttpClientBase
-
abstract
def
put[Resource](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource]): F[Resource]
- Definition Classes
- HttpClientBase
-
abstract
def
putOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource], arg1: scala.reflect.api.JavaUniverse.TypeTag[OperationResponse]): F[OperationResponse]
- Definition Classes
- HttpClientBase
-
abstract
def
putRaw[Resource](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource]): F[Resp]
- Definition Classes
- HttpClientBase
-
abstract
def
send(req: Req, requestFilter: (Req) ⇒ Req = identity): F[Resp]
Send an HTTP request and get the response.
Send an HTTP request and get the response. It will throw an exception for non successful responses (after reaching the max retry limit)
- Exceptions thrown
HttpClientException
for non-retryable error is happendHttpClientMaxRetryException
if max retry reaches
-
abstract
def
sendSafe(req: Req, requestFilter: (Req) ⇒ Req = identity): F[Resp]
Send an HTTP request and returns a response (or the last response if the request is retried)
Concrete 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getOps[Resource, OperationResponse](resourcePath: String, resource: Resource, requestFilter: (Req) ⇒ Req = identity)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Resource], arg1: scala.reflect.api.JavaUniverse.TypeTag[OperationResponse]): F[OperationResponse]
- Definition Classes
- HttpClientBase
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
- def syncClient: HttpSyncClient[Req, Resp]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated