Class/Object

fm.http.client

HttpClient

Related Docs: object HttpClient | package client

Permalink

abstract class HttpClient extends Closeable

Linear Supertypes
Closeable, AutoCloseable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpClient
  2. Closeable
  3. AutoCloseable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpClient()

    Permalink

Abstract Value Members

  1. abstract def close(): Unit

    Permalink
    Definition Classes
    HttpClient → Closeable → AutoCloseable
  2. abstract def defaultCharset: Charset

    Permalink
  3. abstract def defaultHeaders: Headers

    Permalink
  4. abstract def defaultMaxLength: Long

    Permalink
  5. abstract def defaultResponseTimeout: Duration

    Permalink
  6. abstract def execute(r: Request, timeout: Duration): Future[AsyncResponse]

    Permalink

    Execute a Request returning the AsyncResponse

  7. implicit abstract def executionContext: ExecutionContext

    Permalink

    If you make use of this then you cannot perform any blocking operations on it (especially any Await.result or Await.ready operations) otherwise you will risk a deadlock.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. final def execute(r: Request): Future[AsyncResponse]

    Permalink

    Execute a Request returning the AsyncResponse using the defaultResponseTimeout

  9. final def getAsync(url: String, headers: Headers, timeout: Duration): Future[AsyncResponse]

    Permalink

    Perform a GET request returning an AsyncResponse for reading arbitrarily long response bodies

  10. final def getAsync(url: String, timeout: Duration): Future[AsyncResponse]

    Permalink

    Perform a GET request returning an AsyncResponse for reading arbitrarily long response bodies

  11. final def getAsync(url: String, headers: Headers): Future[AsyncResponse]

    Permalink

    Perform a GET request returning an AsyncResponse for reading arbitrarily long response bodies

  12. final def getAsync(url: String): Future[AsyncResponse]

    Permalink

    Perform a GET request returning an AsyncResponse for reading arbitrarily long response bodies

  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  14. final def getFull(url: String, headers: Headers, maxLength: Long, timeout: Duration): Future[FullResponse]

    Permalink

    Perform a GET request returning the FullResponse

  15. final def getFull(url: String, maxLength: Long, timeout: Duration): Future[FullResponse]

    Permalink

    Perform a GET request returning the FullResponse

  16. final def getFull(url: String, headers: Headers, timeout: Duration): Future[FullResponse]

    Permalink

    Perform a GET request returning the FullResponse

  17. final def getFull(url: String, headers: Headers, maxLength: Long): Future[FullResponse]

    Permalink

    Perform a GET request returning the FullResponse

  18. final def getFull(url: String, timeout: Duration): Future[FullResponse]

    Permalink

    Perform a GET request returning the FullResponse

  19. final def getFull(url: String, maxLength: Long): Future[FullResponse]

    Permalink

    Perform a GET request returning the FullResponse

  20. final def getFull(url: String, headers: Headers): Future[FullResponse]

    Permalink

    Perform a GET request returning the FullResponse

  21. final def getFull(url: String): Future[FullResponse]

    Permalink

    Perform a GET request returning the FullResponse

  22. final def getFullString(url: String, headers: Headers, maxLength: Long, timeout: Duration, defaultCharset: Charset): Future[FullStringResponse]

    Permalink

    Perform a GET request returning the FullStringResponse

  23. final def getFullString(url: String, maxLength: Long, timeout: Duration, defaultCharset: Charset): Future[FullStringResponse]

    Permalink

    Perform a GET request returning the FullStringResponse

  24. final def getFullString(url: String, headers: Headers, timeout: Duration, defaultCharset: Charset): Future[FullStringResponse]

    Permalink

    Perform a GET request returning the FullStringResponse

  25. final def getFullString(url: String, headers: Headers, maxLength: Long, defaultCharset: Charset): Future[FullStringResponse]

    Permalink

    Perform a GET request returning the FullStringResponse

  26. final def getFullString(url: String, headers: Headers, maxLength: Long, timeout: Duration): Future[FullStringResponse]

    Permalink

    Perform a GET request returning the FullStringResponse

  27. final def getFullString(url: String, timeout: Duration, defaultCharset: Charset): Future[FullStringResponse]

    Permalink

    Perform a GET request returning the FullStringResponse

  28. final def getFullString(url: String, maxLength: Long, defaultCharset: Charset): Future[FullStringResponse]

    Permalink

    Perform a GET request returning the FullStringResponse

  29. final def getFullString(url: String, maxLength: Long, timeout: Duration): Future[FullStringResponse]

    Permalink

    Perform a GET request returning the FullStringResponse

  30. final def getFullString(url: String, headers: Headers, defaultCharset: Charset): Future[FullStringResponse]

    Permalink

    Perform a GET request returning the FullStringResponse

  31. final def getFullString(url: String, headers: Headers, timeout: Duration): Future[FullStringResponse]

    Permalink

    Perform a GET request returning the FullStringResponse

  32. final def getFullString(url: String, headers: Headers, maxLength: Long): Future[FullStringResponse]

    Permalink

    Perform a GET request returning the FullStringResponse

  33. final def getFullString(url: String, defaultCharset: Charset): Future[FullStringResponse]

    Permalink

    Perform a GET request returning the FullStringResponse

  34. final def getFullString(url: String, timeout: Duration): Future[FullStringResponse]

    Permalink

    Perform a GET request returning the FullStringResponse

  35. final def getFullString(url: String, maxLength: Long): Future[FullStringResponse]

    Permalink

    Perform a GET request returning the FullStringResponse

  36. final def getFullString(url: String, headers: Headers): Future[FullStringResponse]

    Permalink

    Perform a GET request returning the FullStringResponse

  37. final def getFullString(url: String): Future[FullStringResponse]

    Permalink

    Perform a GET request returning the FullStringResponse

  38. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  39. final def head(url: String, headers: Headers, timeout: Duration): Future[FullResponse]

    Permalink

    Perform a HEAD request.

    Perform a HEAD request. Always returns a FullResponse because the body will be empty

  40. final def head(url: String, timeout: Duration): Future[FullResponse]

    Permalink

    Perform a HEAD request.

    Perform a HEAD request. Always returns a FullResponse because the body will be empty

  41. final def head(url: String, headers: Headers): Future[FullResponse]

    Permalink

    Perform a HEAD request.

    Perform a HEAD request. Always returns a FullResponse because the body will be empty

  42. final def head(url: String): Future[FullResponse]

    Permalink

    Perform a HEAD request.

    Perform a HEAD request. Always returns a FullResponse because the body will be empty

  43. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  44. def logException(request: Request, requestBody: Option[String], ex: Throwable): Unit

    Permalink

    A logging hook that can be used to log the Request and an Exception with no Response.

    A logging hook that can be used to log the Request and an Exception with no Response.

    This will be called asynchronously (but before the resulting Future is completed). This does not log direct calls to the execute() method.

  45. def logSuccess(request: Request, requestBody: Option[String], response: Response): Unit

    Permalink

    A logging hook that can be used to log the Request and a successful Response.

    A logging hook that can be used to log the Request and a successful Response.

    This will be called asynchronously (but before the resulting Future is completed). This does not log direct calls to the execute() method.

  46. def loggingHooksEnabled: Boolean

    Permalink

    Override this and set to true to enable the logSuccess and logException methods

  47. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  48. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  49. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  50. final def postAsync(url: String, body: LinkedHttpContent, headers: Headers, timeout: Duration): Future[AsyncResponse]

    Permalink

    Perform a POST request returning an AsyncResponse for reading arbitrarily long response bodies

  51. final def postAsync(url: String, body: File, headers: Headers, timeout: Duration): Future[AsyncResponse]

    Permalink

    Perform a POST request returning an AsyncResponse for reading arbitrarily long response bodies

  52. final def postAsync(url: String, body: File, timeout: Duration): Future[AsyncResponse]

    Permalink

    Perform a POST request returning an AsyncResponse for reading arbitrarily long response bodies

  53. final def postAsync(url: String, body: File, headers: Headers): Future[AsyncResponse]

    Permalink

    Perform a POST request returning an AsyncResponse for reading arbitrarily long response bodies

  54. final def postAsync(url: String, body: LinkedHttpContent): Future[AsyncResponse]

    Permalink

    Perform a POST request returning an AsyncResponse for reading arbitrarily long response bodies

  55. final def postAsync(url: String, body: File): Future[AsyncResponse]

    Permalink

    Perform a POST request returning an AsyncResponse for reading arbitrarily long response bodies

  56. final def postAsync(url: String, body: String, headers: Headers, timeout: Duration): Future[AsyncResponse]

    Permalink

    Perform a POST request returning an AsyncResponse for reading arbitrarily long response bodies

  57. final def postAsync(url: String, body: String, timeout: Duration): Future[AsyncResponse]

    Permalink

    Perform a POST request returning an AsyncResponse for reading arbitrarily long response bodies

  58. final def postAsync(url: String, body: String, headers: Headers): Future[AsyncResponse]

    Permalink

    Perform a POST request returning an AsyncResponse for reading arbitrarily long response bodies

  59. final def postAsync(url: String, body: String): Future[AsyncResponse]

    Permalink

    Perform a POST request returning an AsyncResponse for reading arbitrarily long response bodies

  60. final def postAsync(url: String, body: Array[Byte], headers: Headers, timeout: Duration): Future[AsyncResponse]

    Permalink

    Perform a POST request returning an AsyncResponse for reading arbitrarily long response bodies

  61. final def postAsync(url: String, body: Array[Byte], timeout: Duration): Future[AsyncResponse]

    Permalink

    Perform a POST request returning an AsyncResponse for reading arbitrarily long response bodies

  62. final def postAsync(url: String, body: Array[Byte], headers: Headers): Future[AsyncResponse]

    Permalink

    Perform a POST request returning an AsyncResponse for reading arbitrarily long response bodies

  63. final def postAsync(url: String, body: Array[Byte]): Future[AsyncResponse]

    Permalink

    Perform a POST request returning an AsyncResponse for reading arbitrarily long response bodies

  64. final def postFull(url: String, body: String, headers: Headers, maxLength: Long, timeout: Duration): Future[FullResponse]

    Permalink

    Perform a POST request returning the FullResponse

  65. final def postFull(url: String, body: String, maxLength: Long, timeout: Duration): Future[FullResponse]

    Permalink

    Perform a POST request returning the FullResponse

  66. final def postFull(url: String, body: String, headers: Headers, timeout: Duration): Future[FullResponse]

    Permalink

    Perform a POST request returning the FullResponse

  67. final def postFull(url: String, body: String, headers: Headers, maxLength: Long): Future[FullResponse]

    Permalink

    Perform a POST request returning the FullResponse

  68. final def postFull(url: String, body: String, timeout: Duration): Future[FullResponse]

    Permalink

    Perform a POST request returning the FullResponse

  69. final def postFull(url: String, body: String, maxLength: Long): Future[FullResponse]

    Permalink

    Perform a POST request returning the FullResponse

  70. final def postFull(url: String, body: String, headers: Headers): Future[FullResponse]

    Permalink

    Perform a POST request returning the FullResponse

  71. final def postFull(url: String, body: String): Future[FullResponse]

    Permalink

    Perform a POST request returning the FullResponse

  72. final def postFullString(url: String, body: String, headers: Headers, maxLength: Long, timeout: Duration, defaultCharset: Charset): Future[FullStringResponse]

    Permalink

    Perform a POST request returning the FullStringResponse

  73. final def postFullString(url: String, body: String, maxLength: Long, timeout: Duration, defaultCharset: Charset): Future[FullStringResponse]

    Permalink

    Perform a POST request returning the FullStringResponse

  74. final def postFullString(url: String, body: String, headers: Headers, timeout: Duration, defaultCharset: Charset): Future[FullStringResponse]

    Permalink

    Perform a POST request returning the FullStringResponse

  75. final def postFullString(url: String, body: String, headers: Headers, maxLength: Long, defaultCharset: Charset): Future[FullStringResponse]

    Permalink

    Perform a POST request returning the FullStringResponse

  76. final def postFullString(url: String, body: String, headers: Headers, maxLength: Long, timeout: Duration): Future[FullStringResponse]

    Permalink

    Perform a POST request returning the FullStringResponse

  77. final def postFullString(url: String, body: String, timeout: Duration, defaultCharset: Charset): Future[FullStringResponse]

    Permalink

    Perform a POST request returning the FullStringResponse

  78. final def postFullString(url: String, body: String, maxLength: Long, defaultCharset: Charset): Future[FullStringResponse]

    Permalink

    Perform a POST request returning the FullStringResponse

  79. final def postFullString(url: String, body: String, maxLength: Long, timeout: Duration): Future[FullStringResponse]

    Permalink

    Perform a POST request returning the FullStringResponse

  80. final def postFullString(url: String, body: String, headers: Headers, defaultCharset: Charset): Future[FullStringResponse]

    Permalink

    Perform a POST request returning the FullStringResponse

  81. final def postFullString(url: String, body: String, headers: Headers, timeout: Duration): Future[FullStringResponse]

    Permalink

    Perform a POST request returning the FullStringResponse

  82. final def postFullString(url: String, body: String, headers: Headers, maxLength: Long): Future[FullStringResponse]

    Permalink

    Perform a POST request returning the FullStringResponse

  83. final def postFullString(url: String, body: String, defaultCharset: Charset): Future[FullStringResponse]

    Permalink

    Perform a POST request returning the FullStringResponse

  84. final def postFullString(url: String, body: String, timeout: Duration): Future[FullStringResponse]

    Permalink

    Perform a POST request returning the FullStringResponse

  85. final def postFullString(url: String, body: String, maxLength: Long): Future[FullStringResponse]

    Permalink

    Perform a POST request returning the FullStringResponse

  86. final def postFullString(url: String, body: String, headers: Headers): Future[FullStringResponse]

    Permalink

    Perform a POST request returning the FullStringResponse

  87. final def postFullString(url: String, body: String): Future[FullStringResponse]

    Permalink

    Perform a POST request returning the FullStringResponse

  88. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  89. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  90. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  91. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  93. final def withBasicAuth(user: String, pass: String): HttpClient

    Permalink

    Return an HttpClient that will use Basic auth for any calls made by it

  94. final def withDigestAuth(user: String, pass: String): HttpClient

    Permalink

    Return an HttpClient that will use Digest auth for any calls made by it

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped