3 namespace Friendica\Network;
5 use GuzzleHttp\RequestOptions;
8 * This class contains a list of possible HTTPClient request options.
10 class HTTPClientOptions
13 * accept_content: (array) supply Accept: header with 'accept_content' as the value
15 const ACCEPT_CONTENT = 'accept_content';
17 * timeout: (int) out in seconds, default system config value or 60 seconds
19 const TIMEOUT = RequestOptions::TIMEOUT;
21 * cookiejar: (string) path to cookie jar file
23 const COOKIEJAR = 'cookiejar';
25 * headers: (array) header array
27 const HEADERS = RequestOptions::HEADERS;
29 * header: (array) header array (legacy version)
31 const LEGACY_HEADER = 'header';
33 * content_length: (int) maximum File content length
35 const CONTENT_LENGTH = 'content_length';
37 * body: (mixed) Setting the body for sending data
39 const BODY = RequestOptions::BODY;
41 * auth: (array) Authentication settings for specific requests
43 const AUTH = RequestOptions::AUTH;