mirror of
https://github.com/friendica/friendica
synced 2025-04-24 08:30:11 +00:00
Introduce "accept_header" as specific argument to the http client
This commit is contained in:
parent
73c3b21665
commit
e299fc67c8
35 changed files with 150 additions and 150 deletions
|
@ -2,6 +2,9 @@
|
|||
|
||||
namespace Friendica\Network\HTTPClient\Client;
|
||||
|
||||
/**
|
||||
* This class contains a list of possible HTTPClient ACCEPT options.
|
||||
*/
|
||||
class HttpClientAccept
|
||||
{
|
||||
/** @var string Default value for "Accept" header */
|
||||
|
@ -20,4 +23,5 @@ class HttpClientAccept
|
|||
public const TEXT = 'text/plain,text/*;q=0.9,*/*;q=0.8';
|
||||
public const VIDEO = 'video/mp4,video/*;q=0.9,*/*;q=0.8';
|
||||
public const XRD_XML = 'application/xrd+xml,text/xml;q=0.9,*/*;q=0.8';
|
||||
public const XML = 'application/xml,text/xml;q=0.9,*/*;q=0.8';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue