final case class ZClient[-Env, -In, +Err, +Out](version: Version, url: URL, headers: Headers, sslConfig: Option[ClientSSLConfig], proxy: Option[Proxy], bodyEncoder: BodyEncoder[Env, Err, In], bodyDecoder: BodyDecoder[Env, Err, Out], driver: ZClient.Driver[Env, Err]) extends HeaderOps[ZClient[Env, In, Err, Out]] with Product with Serializable
- Self Type
- ZClient[Env, In, Err, Out]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ZClient
- Serializable
- Product
- Equals
- HeaderOps
- HeaderChecks
- HeaderGetters
- HeaderModifier
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ZClient(version: Version, url: URL, headers: Headers, sslConfig: Option[ClientSSLConfig], proxy: Option[Proxy], bodyEncoder: BodyEncoder[Env, Err, In], bodyDecoder: BodyDecoder[Env, Err, Out], driver: ZClient.Driver[Env, Err])
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 @@[LowerEnv <: UpperEnv, UpperEnv <: Env, LowerIn <: UpperIn, UpperIn <: In, LowerErr >: Err, UpperErr >: LowerErr, LowerOut >: Out, UpperOut >: LowerOut](aspect: ZClientAspect[LowerEnv, UpperEnv, LowerIn, UpperIn, LowerErr, UpperErr, LowerOut, UpperOut]): ZClient[UpperEnv, UpperIn, LowerErr, LowerOut]
Applies the specified client aspect, which can modify the execution of this client.
- final def addHeader(name: CharSequence, value: CharSequence): ZClient[Env, In, Err, Out]
- Definition Classes
- HeaderModifier
- final def addHeader(header: Header): ZClient[Env, In, Err, Out]
- Definition Classes
- HeaderModifier
- final def addHeaders(headers: Headers): ZClient[Env, In, Err, Out]
- Definition Classes
- HeaderModifier
- def addLeadingSlash: ZClient[Env, In, Err, Out]
- def addPath(path: Path): ZClient[Env, In, Err, Out]
- def addPath(path: String): ZClient[Env, In, Err, Out]
- def addQueryParam(key: String, value: String): ZClient[Env, In, Err, Out]
- def addQueryParams(params: QueryParams): ZClient[Env, In, Err, Out]
- def addTrailingSlash: ZClient[Env, In, Err, Out]
- def addUrl(url: URL): ZClient[Env, In, Err, Out]
- def apply(request: Request)(implicit ev: <:<[Body, In], trace: Trace): ZIO[zio.&[Env, Scope], Err, Out]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bodyDecoder: BodyDecoder[Env, Err, Out]
- val bodyEncoder: BodyEncoder[Env, Err, In]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def contramap[In2](f: (In2) => In)(implicit trace: Trace): ZClient[Env, In2, Err, Out]
- def contramapZIO[Env1 <: Env, Err1 >: Err, In2](f: (In2) => ZIO[Env1, Err1, In]): ZClient[Env1, In2, Err1, Out]
- def delete(suffix: String)(implicit ev: <:<[Body, In], trace: Trace): ZIO[zio.&[Env, Scope], Err, Out]
- def dieOn(f: (Err) => Boolean)(implicit ev1: IsSubtypeOfError[Err, Throwable], ev2: CanFail[Err], trace: Trace): ZClient[Env, In, Err, Out]
- def disableStreaming(implicit ev: <:<[Err, Throwable], trace: Trace): ZClient[Env, In, Throwable, Out]
- val driver: ZClient.Driver[Env, Err]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def get(suffix: String)(implicit ev: <:<[Body, In], trace: Trace): ZIO[zio.&[Env, Scope], Err, Out]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def hasContentType(value: CharSequence): Boolean
- Definition Classes
- HeaderChecks
- final def hasFormMultipartContentType: Boolean
- Definition Classes
- HeaderChecks
- final def hasFormUrlencodedContentType: Boolean
- Definition Classes
- HeaderChecks
- final def hasHeader(header: Header): Boolean
- Definition Classes
- HeaderChecks
- final def hasHeader(headerType: HeaderType): Boolean
- Definition Classes
- HeaderChecks
- final def hasHeader(name: CharSequence): Boolean
- Definition Classes
- HeaderChecks
- final def hasJsonContentType: Boolean
- Definition Classes
- HeaderChecks
- final def hasMediaType(mediaType: MediaType): Boolean
- Definition Classes
- HeaderChecks
- final def hasTextPlainContentType: Boolean
- Definition Classes
- HeaderChecks
- final def hasXhtmlXmlContentType: Boolean
- Definition Classes
- HeaderChecks
- final def hasXmlContentType: Boolean
- Definition Classes
- HeaderChecks
- def head(suffix: String)(implicit ev: <:<[Body, In], trace: Trace): ZIO[zio.&[Env, Scope], Err, Out]
- final def header(headerType: HeaderType): Option[HeaderValue]
Gets a header or returns None if the header was not present or it could not be parsed
Gets a header or returns None if the header was not present or it could not be parsed
- Definition Classes
- HeaderGetters
- final def headerOrFail(headerType: HeaderType): Option[Either[String, HeaderValue]]
Gets a header.
Gets a header. If the header is not present, returns None. If the header could not be parsed it returns the parsing error
- Definition Classes
- HeaderGetters
- final def headers(headerType: HeaderType): Chunk[HeaderValue]
- Definition Classes
- HeaderGetters
- val headers: Headers
Returns the headers
Returns the headers
- Definition Classes
- ZClient → HeaderGetters
- def host(host: String): ZClient[Env, In, Err, Out]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[Out2](f: (Out) => Out2)(implicit trace: Trace): ZClient[Env, In, Err, Out2]
- def mapError[Err2](f: (Err) => Err2): ZClient[Env, In, Err2, Out]
- def mapZIO[Env1 <: Env, Err1 >: Err, Out2](f: (Out) => ZIO[Env1, Err1, Out2]): ZClient[Env1, In, Err1, Out2]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def patch(suffix: String)(implicit ev: <:<[Body, In], trace: Trace): ZIO[zio.&[Env, Scope], Err, Out]
- def path(path: Path): ZClient[Env, In, Err, Out]
- def path(path: String): ZClient[Env, In, Err, Out]
- def port(port: Int): ZClient[Env, In, Err, Out]
- def post(suffix: String)(body: In)(implicit trace: Trace): ZIO[zio.&[Env, Scope], Err, Out]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def proxy(proxy: Proxy): ZClient[Env, In, Err, Out]
- val proxy: Option[Proxy]
- def put(suffix: String)(body: In)(implicit trace: Trace): ZIO[zio.&[Env, Scope], Err, Out]
- final def rawHeader(headerType: HeaderType): Option[String]
Gets the raw unparsed header value
Gets the raw unparsed header value
- Definition Classes
- HeaderGetters
- final def rawHeader(name: CharSequence): Option[String]
Gets the raw unparsed header value
Gets the raw unparsed header value
- Definition Classes
- HeaderGetters
- def refineOrDie[Err2](pf: PartialFunction[Err, Err2])(implicit ev1: IsSubtypeOfError[Err, Throwable], ev2: CanFail[Err], trace: Trace): ZClient[Env, In, Err2, Out]
- final def removeHeader(name: String): ZClient[Env, In, Err, Out]
- Definition Classes
- HeaderModifier
- final def removeHeader(headerType: HeaderType): ZClient[Env, In, Err, Out]
- Definition Classes
- HeaderModifier
- final def removeHeaders(headers: Set[String]): ZClient[Env, In, Err, Out]
- Definition Classes
- HeaderModifier
- def request(method: Method, suffix: String)(body: In)(implicit trace: Trace): ZIO[zio.&[Env, Scope], Err, Out]
- def request(request: Request)(implicit ev: <:<[Body, In], trace: Trace): ZIO[zio.&[Env, Scope], Err, Out]
- def retry[Env1 <: Env](policy: Schedule[Env1, Err, Any]): ZClient[Env1, In, Err, Out]
- def scheme(scheme: Scheme): ZClient[Env, In, Err, Out]
- final def setHeaders(headers: Headers): ZClient[Env, In, Err, Out]
- Definition Classes
- HeaderModifier
- def socket[Env1 <: Env](app: WebSocketApp[Env1])(implicit trace: Trace): ZIO[zio.&[Env1, Scope], Err, Out]
- def ssl(ssl: ClientSSLConfig): ZClient[Env, In, Err, Out]
- val sslConfig: Option[ClientSSLConfig]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def transform[Env2, In2, Err2, Out2](bodyEncoder: BodyEncoder[Env2, Err2, In2], bodyDecoder: BodyDecoder[Env2, Err2, Out2], driver: ZClient.Driver[Env2, Err2]): ZClient[Env2, In2, Err2, Out2]
- def updateHeaders(update: (Headers) => Headers)(implicit trace: Trace): ZClient[Env, In, Err, Out]
Updates the current Headers with new one, using the provided update function passed.
Updates the current Headers with new one, using the provided update function passed.
- Definition Classes
- ZClient → HeaderModifier
- def uri(uri: URI): ZClient[Env, In, Err, Out]
- def url(url: URL): ZClient[Env, In, Err, Out]
- val url: URL
- val version: Version
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])