Sha256: e2cbf20c0ec96a589aad36da90e8d4c44c5f279e4f6689ce062bef56a2a79f5e

Contents?: true

Size: 374 Bytes

Versions: 14

Compression:

Stored size: 374 Bytes

Contents

# Default Timeout Interceptor

Applies default timeout values to all requests made in an application, that uses LHC.

```ruby
  LHC.config.interceptors = [LHC::DefaultTimeout]
```

`timeout` default: 15 seconds
`connecttimeout` default: 2 seconds

## Overwrite defaults

```ruby
LHC::DefaultTimeout.timeout = 5 # seconds
LHC::DefaultTimeout.connecttimeout = 3 # seconds
```

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
lhc-9.4.0 docs/interceptors/default_timeout.md
lhc-9.3.1 docs/interceptors/default_timeout.md
lhc-9.3.0 docs/interceptors/default_timeout.md
lhc-9.2.0 docs/interceptors/default_timeout.md
lhc-9.1.2 docs/interceptors/default_timeout.md
lhc-9.1.2.pre docs/interceptors/default_timeout.md
lhc-9.1.1 docs/interceptors/default_timeout.md
lhc-8.1.1 docs/interceptors/default_timeout.md
lhc-9.1.0 docs/interceptors/default_timeout.md
lhc-9.0.0 docs/interceptors/default_timeout.md
lhc-8.1.0 docs/interceptors/default_timeout.md
lhc-8.0.0 docs/interceptors/default_timeout.md
lhc-7.3.3 docs/interceptors/default_timeout.md
lhc-7.3.2 docs/interceptors/default_timeout.md