Skip to content

Commit

Permalink
Merge 83eac2e into 230f704
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Concannon committed Nov 11, 2020
2 parents 230f704 + 83eac2e commit 753e201
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Expand Up @@ -28,6 +28,24 @@ Configure the library with your Castle API secret.
Castle::setApiKey('YOUR_API_SECRET');
```

## Optional Configurations

Set preferred connection and request timeouts:
valid options for setting are:
- `CURLOPT_CONNECTTIMEOUT`
- `CURLOPT_CONNETTIMEOUT_MS`
- `CURLOPT_TIMEOUT`
- `CURLOPT_TIMEOUT_MS`

```php
Castle::setCurlOpts($curlOpts)
```

Set a specified list of request headers to include with event context (optional, not recommended):
```php
Castle::setUseWhitelist($headers)
```

## Request context

By default, Castle extracts all the necessary information, such as IP and request
Expand Down

0 comments on commit 753e201

Please sign in to comment.