]> git.mxchange.org Git - friendica.git/blob - src/Network/HTTPClientOptions.php
Refactor User::getAvatarUrlForId into getAvatarUrl
[friendica.git] / src / Network / HTTPClientOptions.php
1 <?php
2
3 namespace Friendica\Network;
4
5 use GuzzleHttp\RequestOptions;
6
7 /**
8  * This class contains a list of possible HTTPClient request options.
9  */
10 class HTTPClientOptions
11 {
12         /**
13          * accept_content: (array) supply Accept: header with 'accept_content' as the value
14          */
15         const ACCEPT_CONTENT = 'accept_content';
16         /**
17          * timeout: (int) out in seconds, default system config value or 60 seconds
18          */
19         const TIMEOUT = RequestOptions::TIMEOUT;
20         /**
21          * cookiejar: (string) path to cookie jar file
22          */
23         const COOKIEJAR = 'cookiejar';
24         /**
25          * headers: (array) header array
26          */
27         const HEADERS = RequestOptions::HEADERS;
28         /**
29          * header: (array) header array (legacy version)
30          */
31         const LEGACY_HEADER = 'header';
32         /**
33          * content_length: (int) maximum File content length
34          */
35         const CONTENT_LENGTH = 'content_length';
36         /**
37          * body: (mixed) Setting the body for sending data
38          */
39         const BODY = RequestOptions::BODY;
40         /**
41          * auth: (array) Authentication settings for specific requests
42          */
43         const AUTH = RequestOptions::AUTH;
44 }