Skip to content

Commit

Permalink
Pass through *arguments and **options for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Nov 24, 2024
1 parent 08878c4 commit 2363472
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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

0 comments on commit 2363472

Please sign in to comment.