Skip to content

Client-side Acceptable Format Initiative

Notifications You must be signed in to change notification settings

clashdev/proposal-media-type

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Client-side Acceptable Format Initiative

Resources

Stars

Watchers

Forks