final case class SttpJdkHttpFutureClientBuilder(builder: Builder = ...)(implicit ec: ExecutionContext = ExecutionContext.global) extends SttpJVM[Future] with Product with Serializable
Uses java.net.http.HttpClient asynchronously using Futures. It requires JDK 11+
- builder
Client builder
- ec
ExecutionContext to run on
- Alphabetic
- By Inheritance
- SttpJdkHttpFutureClientBuilder
- Serializable
- Serializable
- Product
- Equals
- SttpJVM
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
SttpJdkHttpFutureClientBuilder(builder: Builder = ...)(implicit ec: ExecutionContext = ExecutionContext.global)
- builder
Client builder
- ec
ExecutionContext to run on
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
buildWithSSLContext: (SSLContext) ⇒ SttpBackend[Future, Any]
- Attributes
- protected
- Definition Classes
- SttpJdkHttpFutureClientBuilder → SttpJVM
- val builder: Builder
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
defaultConfig[T](implicit arg0: Builder[T], arg1: Reader[T], arg2: BodySerializer[T]): HttpClient[[β$6$]Future[Response[β$6$]]]
Build kubernetes client kubectl config file found from default locations.
Build kubernetes client kubectl config file found from default locations. It tries:
KUBECONFIG
from env- ~/.kube/config
- pod's service account in /var/run/secrets/kubernetes.io/serviceaccount
- Definition Classes
- SttpJVM
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
from[T](server: String, ca: Option[File] = None, clientCert: Option[File] = None, clientKey: Option[File] = None, clientKeyPassword: Option[String] = None, authentication: AuthenticationParams = AuthenticationParams.empty)(implicit arg0: Builder[T], arg1: Reader[T], arg2: BodySerializer[T]): HttpClient[[β$2$]Future[Response[β$2$]]]
Build kubernetes client using the certificate files.
Build kubernetes client using the certificate files.
- server
Server address
- ca
certificate authority file
- clientCert
client certificate file
- clientKey
client key file
- clientKeyPassword
password for client key if any
- authentication
Authentication parameters
- Definition Classes
- SttpJVM
-
def
fromConfig[T](config: Config, context: Option[String] = None)(implicit arg0: Builder[T], arg1: Reader[T], arg2: BodySerializer[T]): HttpClient[[β$0$]Future[Response[β$0$]]]
Build kubernetes client from Config data structure
Build kubernetes client from Config data structure
- config
Config to use
- context
If provided, overrides the config's current context
- Definition Classes
- SttpJVM
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
load[T](config: Path, context: Option[String] = None)(implicit arg0: Builder[T], arg1: Reader[T], arg2: BodySerializer[T]): HttpClient[[β$4$]Future[Response[β$4$]]]
Build kubernetes client from kubectl config file
Build kubernetes client from kubectl config file
- config
Path to kubeconfig file
- context
If provided, overrides the config's current context
- Definition Classes
- SttpJVM
-
def
loadFile[T](config: String, context: Option[String] = None)(implicit arg0: Builder[T], arg1: Reader[T], arg2: BodySerializer[T]): HttpClient[[β$5$]Future[Response[β$5$]]]
Build kubernetes client from kubectl config file
Build kubernetes client from kubectl config file
- config
Path to kubeconfig file
- context
If provided, overrides the config's current context
- Definition Classes
- SttpJVM
-
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
-
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( ... )