Skip to content

Commit 6780006

Browse files
authored
Add documentation to proxy, redirect ignoring
1 parent 9ed8d1d commit 6780006

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,14 @@ $client->json(["key" => "value"])->post("https://example.com")
3737
// Add custom headers to request
3838
$client->headers(["key" => "value"])->get("https://example.com");
3939

40+
// Ignore redirects
41+
$client->withoutRedirects()->get("https://example.com");
42+
43+
// Proxy
44+
$client->proxy("https://hostname:8080")->get("https://example.com");
45+
4046
// Authentication
4147
$client->auth("auth_basic", ["username", "password"])->get("https://example.com");
4248
$client->authBasic(["username", "password"])->get("https://example.com");
4349
$client->authBearer("tokenhere")->get("https://example.com");
44-
```
50+
```

0 commit comments

Comments
 (0)