Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 2.59 KB

README.md

File metadata and controls

62 lines (48 loc) · 2.59 KB

Client-side Acceptable Format Initiative

Stage: Proposal

This initiative hopes to improve the current situation of Proxy Client based on User-Agent detection format.

The initiative recommended use Accept http request header

Example

Request:

GET /to/path HTTP/1.1
Accept: text/clash+yaml, text/surge

Response:

HTTP/1.1 200 OK
Content-Type: text/clash+yaml

Media Type Registry

Media Type File Format
text/surge Surge format
text/surge-proxies Surge Proxy Provider format
text/surge-ruleset Surge Rule Provider format
text/surge-domain-set Surge Domain Set format
text/clash+yaml Clash format
text/clash-proxies+yaml Clash Proxy Provider format
text/clash-ruleset+yaml Clash Rule Provider format (YAML)
text/clash-ruleset Clash Rule Provider format (Text)
text/sip008+json Shadowsocks SIP008 format
text/uri-proxies URI Proxies format

References