examples/upload/client.rb in async-http-0.40.3 vs examples/upload/client.rb in async-http-0.41.0
- old
+ new
@@ -4,13 +4,13 @@
require 'async'
require 'async/http/body/file'
require 'async/http/body/delayed'
require 'async/http/client'
-require 'async/http/url_endpoint'
+require 'async/http/endpoint'
Async.run do
- endpoint = Async::HTTP::URLEndpoint.parse("http://localhost:9222")
+ endpoint = Async::HTTP::Endpoint.parse("http://localhost:9222")
client = Async::HTTP::Client.new(endpoint, Async::HTTP::Protocol::HTTP2)
headers = [
['accept', 'text/plain'],
]