]> git.mxchange.org Git - friendica.git/blob - src/Network/HTTPClient/Client/HttpClientAccept.php
Merge pull request #11457 from annando/performance
[friendica.git] / src / Network / HTTPClient / Client / HttpClientAccept.php
1 <?php
2 /**
3  * @copyright Copyright (C) 2010-2022, the Friendica project
4  *
5  * @license GNU AGPL version 3 or any later version
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Affero General Public License as
9  * published by the Free Software Foundation, either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU Affero General Public License for more details.
16  *
17  * You should have received a copy of the GNU Affero General Public License
18  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19  *
20  */
21
22 namespace Friendica\Network\HTTPClient\Client;
23
24 /**
25  * This class contains a list of possible HTTPClient ACCEPT options.
26  */
27 class HttpClientAccept
28 {
29         /** @var string Default value for "Accept" header */
30         public const DEFAULT = '*/*';
31
32         public const ATOM_XML  = 'application/atom+xml,text/xml;q=0.9,*/*;q=0.8';
33         public const FEED_XML  = 'application/atom+xml,application/rss+xml;q=0.9,application/rdf+xml;q=0.8,text/xml;q=0.7,*/*;q=0.6';
34         public const HTML      = 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8';
35         public const IMAGE     = 'image/png,image/jpeg,image/gif,image/*;q=0.9,*/*;q=0.8';
36         public const JRD_JSON  = 'application/jrd+json,application/json;q=0.9';
37         public const JSON      = 'application/json,*/*;q=0.9';
38         public const JSON_AS   = 'application/activity+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams"';
39         public const MAGIC     = 'application/magic-envelope+xml';
40         public const MAGIC_KEY = 'application/magic-public-key';
41         public const RSS_XML   = 'application/rss+xml,text/xml;q=0.9,*/*;q=0.8';
42         public const TEXT      = 'text/plain,text/*;q=0.9,*/*;q=0.8';
43         public const VIDEO     = 'video/mp4,video/*;q=0.9,*/*;q=0.8';
44         public const XRD_XML   = 'application/xrd+xml,text/xml;q=0.9,*/*;q=0.8';
45         public const XML       = 'application/xml,text/xml;q=0.9,*/*;q=0.8';
46 }