mirror of
https://github.com/kristuff/abuseipdb
synced 2025-08-20 13:33:14 -07:00
v0.9.15
**Changes** - **New** `ApiHandler::setTimeout(int $timeout)` method allows to change default timeout before any API request. Timeout is expressed in milliseconds. Overwrites the value passed in constructor, useful when performing multiple queries with same handler but different timeout.
This commit is contained in:
parent
d1d9cf9ad0
commit
dc30007818
7 changed files with 25 additions and 9 deletions
|
@ -17,6 +17,7 @@ Features
|
||||||
- Bulk report request (send `csv` file) **✓**
|
- Bulk report request (send `csv` file) **✓**
|
||||||
- Clear IP address request (remove your own reports) **✓**
|
- Clear IP address request (remove your own reports) **✓**
|
||||||
- Auto cleaning report comments from sensitive data (email, custom ip/domain names list) **✓**
|
- Auto cleaning report comments from sensitive data (email, custom ip/domain names list) **✓**
|
||||||
|
- Define timeout for cURL internal requests **✓**
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
------------
|
------------
|
||||||
|
@ -32,7 +33,7 @@ Deploy with composer:
|
||||||
```json
|
```json
|
||||||
...
|
...
|
||||||
"require": {
|
"require": {
|
||||||
"kristuff/abuseipdb": "^0.9.14-stable"
|
"kristuff/abuseipdb": "^0.9.15-stable"
|
||||||
},
|
},
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* For the full copyright and license information, please view the LICENSE
|
* For the full copyright and license information, please view the LICENSE
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*
|
*
|
||||||
* @version 0.9.14
|
* @version 0.9.15
|
||||||
* @copyright 2020-2021 Kristuff
|
* @copyright 2020-2021 Kristuff
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* For the full copyright and license information, please view the LICENSE
|
* For the full copyright and license information, please view the LICENSE
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*
|
*
|
||||||
* @version 0.9.14
|
* @version 0.9.15
|
||||||
* @copyright 2020-2021 Kristuff
|
* @copyright 2020-2021 Kristuff
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ class ApiHandler extends ApiBase
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
const VERSION = 'v0.9.14';
|
const VERSION = 'v0.9.15';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ips to remove from report messages
|
* The ips to remove from report messages
|
||||||
|
@ -72,6 +72,21 @@ class ApiHandler extends ApiBase
|
||||||
$this->timeout = $timeout;
|
$this->timeout = $timeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the cURL timeout (apply then to any API request). Overwrites the value passed in
|
||||||
|
* constructor, useful when performing multiple queries with same handler but different timeout.
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @param int $timeout The maximum number of milliseconds to allow internal cURL functions
|
||||||
|
* to execute.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setTimeout(int $timeout): void
|
||||||
|
{
|
||||||
|
$this->timeout = $timeout;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the current configuration in a indexed array
|
* Get the current configuration in a indexed array
|
||||||
*
|
*
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* For the full copyright and license information, please view the LICENSE
|
* For the full copyright and license information, please view the LICENSE
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*
|
*
|
||||||
* @version 0.9.14
|
* @version 0.9.15
|
||||||
* @copyright 2020-2021 Kristuff
|
* @copyright 2020-2021 Kristuff
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* For the full copyright and license information, please view the LICENSE
|
* For the full copyright and license information, please view the LICENSE
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*
|
*
|
||||||
* @version 0.9.14
|
* @version 0.9.15
|
||||||
* @copyright 2020-2021 Kristuff
|
* @copyright 2020-2021 Kristuff
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* For the full copyright and license information, please view the LICENSE
|
* For the full copyright and license information, please view the LICENSE
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*
|
*
|
||||||
* @version 0.9.14
|
* @version 0.9.15
|
||||||
* @copyright 2020-2021 Kristuff
|
* @copyright 2020-2021 Kristuff
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* For the full copyright and license information, please view the LICENSE
|
* For the full copyright and license information, please view the LICENSE
|
||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*
|
*
|
||||||
* @version 0.9.14
|
* @version 0.9.15
|
||||||
* @copyright 2020-2021 Kristuff
|
* @copyright 2020-2021 Kristuff
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue