Skip to content

Commit

Permalink
Add documentation to proxy, redirect ignoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan770 authored Jun 9, 2019
1 parent 9ed8d1d commit 6780006
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,14 @@ $client->json(["key" => "value"])->post("https://example.com")
// Add custom headers to request
$client->headers(["key" => "value"])->get("https://example.com");

// Ignore redirects
$client->withoutRedirects()->get("https://example.com");

// Proxy
$client->proxy("https://hostname:8080")->get("https://example.com");

// Authentication
$client->auth("auth_basic", ["username", "password"])->get("https://example.com");
$client->authBasic(["username", "password"])->get("https://example.com");
$client->authBearer("tokenhere")->get("https://example.com");
```
```

0 comments on commit 6780006

Please sign in to comment.