/http-verbs

Library which encapsulates common concerns for calling other HTTP services

Primary LanguageScalaApache License 2.0Apache-2.0

http-verbs

Build Status Download

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

Adding to your build

In your SBT build add:

resolvers += Resolver.bintrayRepo("hmrc", "releases")

libraryDependencies += "uk.gov.hmrc" %% "http-verbs" % "x.x.x"

Usage

All examples are available here:hmrc/http-verbs-example

License

This code is open source software licensed under the Apache 2.0 License.