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

Pass through *arguments and **options for consistency. #191

Merged
merged 1 commit into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/async/http/internet/instance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def self.instance

class << self
::Protocol::HTTP::Methods.each do |name, verb|
define_method(verb.downcase) do |url, headers = nil, body = nil, &block|
self.instance.call(verb, url, headers, body, &block)
define_method(verb.downcase) do |url, *arguments, **options, &block|
self.instance.call(verb, url, *arguments, **options, &block)
end
end
end
Expand Down
4 changes: 4 additions & 0 deletions releases.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Releases

## Unreleased

- Minor consistency fixes to `Async::HTTP::Internet` singleton methods.

## v0.82.0

- `protocol-http1` introduces a line length limit for request line, response line, header lines and chunk length lines.
Expand Down
Loading