README.md in httpx-1.0.2 vs README.md in httpx-1.1.0
- old
+ new
@@ -106,11 +106,11 @@
`httpx` builds all functions around the `HTTPX` module, so that all calls can compose of each other. Here are a few examples:
```ruby
response = HTTPX.get("https://www.google.com", params: { q: "me" })
response = HTTPX.post("https://www.nghttp2.org/httpbin/post", form: {name: "John", age: "22"})
-response = HTTPX.plugin(:basic_authentication)
- .basic_authentication("user", "pass")
+response = HTTPX.plugin(:basic_auth)
+ .basic_auth("user", "pass")
.get("https://www.google.com")
# more complex client objects can be cached, and are thread-safe
http = HTTPX.plugin(:expect).with(headers: { "x-pvt-token" => "TOKEN"})
http.get("https://example.com") # the above options will apply