Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default headers #58

Merged
merged 3 commits into from
Mar 16, 2020
Merged

Default headers #58

merged 3 commits into from
Mar 16, 2020

Conversation

pacoguzman
Copy link
Contributor

@pacoguzman pacoguzman commented Mar 14, 2020

This allows to provide request headers based on current thread values, for example for tracing.
Besides I've realised that default options are tricky as they need to receive all the options to properly override defaults, if not we just clearing and removing the default values.

Paco Guzmán added 3 commits March 14, 2020 07:42
```ruby
Almodovar.default_options = {
  headers: Proc.new{ {‘X-Request-ID’ => ::RequestId.request_id} }
}
```
Before we were obligated to provide all the options all the time
@skuark skuark merged commit c966e8e into master Mar 16, 2020
@skuark skuark deleted the default-headers branch March 16, 2020 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants