mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 07:18:17 +02:00
Rename HTTPRequestOptions to HTTPClientOptions
This commit is contained in:
parent
478f69c403
commit
505100bdd7
13 changed files with 50 additions and 50 deletions
40
src/Network/HTTPClientOptions.php
Normal file
40
src/Network/HTTPClientOptions.php
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Network;
|
||||
|
||||
use GuzzleHttp\RequestOptions;
|
||||
|
||||
/**
|
||||
* This class contains a list of possible HTTPClient request options.
|
||||
*/
|
||||
class HTTPClientOptions
|
||||
{
|
||||
/**
|
||||
* accept_content: (array) supply Accept: header with 'accept_content' as the value
|
||||
*/
|
||||
const ACCEPT_CONTENT = 'accept_content';
|
||||
/**
|
||||
* timeout: (int) out in seconds, default system config value or 60 seconds
|
||||
*/
|
||||
const TIMEOUT = RequestOptions::TIMEOUT;
|
||||
/**
|
||||
* cookiejar: (string) path to cookie jar file
|
||||
*/
|
||||
const COOKIEJAR = 'cookiejar';
|
||||
/**
|
||||
* headers: (array) header array
|
||||
*/
|
||||
const HEADERS = RequestOptions::HEADERS;
|
||||
/**
|
||||
* header: (array) header array (legacy version)
|
||||
*/
|
||||
const LEGACY_HEADER = 'header';
|
||||
/**
|
||||
* content_length: (int) maximum File content length
|
||||
*/
|
||||
const CONTENT_LENGTH = 'content_length';
|
||||
/**
|
||||
* body: (mixed) Setting the body for sending data
|
||||
*/
|
||||
const BODY = RequestOptions::BODY;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue