http-verbs is a Scala library providing an interface to make asynchronous HTTP calls.
It encapsulates some common concerns for calling other HTTP services on the HMRC Tax Platform, including:
- Logging
- Header Carrier
- Http Transport
- Core Http function interfaces
- executing hooks
- mapping errors
- Auditing
- Logging
- Propagation of common headers
- Response handling, converting failure status codes into a consistent set of exceptions - allows failures to be * automatically propagated to the caller
- Request & Response de-serializations
In your SBT build add:
resolvers += Resolver.bintrayRepo("hmrc", "releases")
libraryDependencies += "uk.gov.hmrc" %% "http-verbs" % "x.x.x"
All examples are available here:hmrc/http-verbs-example
This code is open source software licensed under the Apache 2.0 License.