package scalaHttpClient
- Alphabetic
- Public
- All
Type Members
-
final
case class
AlreadyAuthorizedException(message: String = ...) extends Exception with Product with Serializable
Being throw when the request to be signed already includes an "Authorization" header
- class AwsRequestSigner extends StrictLogging
- final case class DeadlineExpired(content: Option[HttpResponse] = None) extends HttpClientFailure with Product with Serializable
- final case class DomainError(content: HttpResponse) extends HttpClientResponse with Product with Serializable
- final case class ExceptionOccurred(exception: Exception) extends HttpClientFailure with Product with Serializable
- class HttpClient extends LoggingHttpClient[NoLoggingContext]
-
final
case class
HttpClientConfig(scheme: String, host: String, port: Int, awsRequestSignerConfig: Option[AwsRequestSignerConfig] = None) extends Product with Serializable
Configuration of a particular HTTP client.
Configuration of a particular HTTP client.
- scheme
For example "http" or "https"
- host
Name of the host
- port
Port of the host
- awsRequestSignerConfig
Optional config for AWS request signing
- final case class HttpClientError(content: HttpResponse) extends HttpClientFailure with Product with Serializable
- sealed abstract class HttpClientFailure extends HttpClientResponse
- sealed abstract class HttpClientResponse extends AnyRef
- final case class HttpClientSuccess(content: HttpResponse) extends HttpClientResponse with Product with Serializable
- abstract class HttpLayer[LoggingContext] extends AnyRef
- trait HttpMetrics[LoggingContext] extends AnyRef
- class LoggingHttpClient[LoggingContext] extends HttpLayer[LoggingContext]
- trait NoLoggingContext extends AnyRef
-
final
case class
RetryConfig(retriesRequestTimeout: Int, retriesTooManyRequests: Int, retriesClientError: Int, retriesInternalServerError: Int, retriesBadGateway: Int, retriesServiceUnavailable: Int, retriesServerError: Int, retriesException: Int, initialBackoff: FiniteDuration, strictifyResponseTimeout: FiniteDuration) extends Product with Serializable
Retry configuration of HTTP clients.
Retry configuration of HTTP clients.
- retriesRequestTimeout
Number of retries for HTTP 408
- retriesTooManyRequests
Number of retries for HTTP 429 (usually in combination with retry-after header)
- retriesClientError
Number of retries for all other 4xx codes
- retriesInternalServerError
Number of retries for HTTP 500
- retriesBadGateway
Number of retries for HTTP 502
- retriesServiceUnavailable
Number of retries for HTTP 503
- retriesServerError
Number of retries for all other 5xx codes
- retriesException
Number of retries for exceptions in the underlying akka-http client
- initialBackoff
Time to wait until the first retry. Is multiplied with 2(# of retry). Example: 10ms * 20 => 10ms 10ms * 21 => 20ms 10ms * 22 => 40ms 10ms * 23 => 80ms 10ms * 24 => 160ms
- strictifyResponseTimeout
Time to wait for streaming data to complete
Value Members
- object AwsRequestSigner extends StrictLogging
- object HttpMetrics
- object NoLoggingContext extends NoLoggingContext
- object RetryConfig extends Serializable