Sha256: 6cb5cf27698b60ce27eb8ed3fe4dd14485b3481f8b1b45604afcbb2d0b9f52f3

Contents?: true

Size: 638 Bytes

Versions: 75

Compression:

Stored size: 638 Bytes

Contents

Request
===

The request class handles the http request,
implements the interceptor pattern,
loads configured endpoints,
generates urls from url-templates
and raises exceptions for any response code that is not indicating success (2**).

→ [Read more about exceptions](exceptions.md)

```ruby
  request.response #<LHC::Response> the associated response.

  request.options #<Hash> the options used for creating the request.

  request.params # access request params

  request.headers # access request headers

  request.url #<String> URL that is used for doing the request

  request.method #<Symbol> provides the used http-method
```

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
lhc-3.5.4 docs/request.md
lhc-3.5.3 docs/request.md
lhc-3.5.2 docs/request.md
lhc-3.5.1 docs/request.md
lhc-3.5.0 docs/request.md
lhc-3.4.0 docs/request.md
lhc-3.3.0 docs/request.md
lhc-3.2.0 docs/request.md
lhc-3.1.1 docs/request.md
lhc-3.1.0 docs/request.md
lhc-3.0.0 docs/request.md
lhc-2.0.0 docs/request.md
lhc-1.2.0 docs/request.md
lhc-1.1.0 docs/request.md
lhc-0.2.1 docs/request.md