From 34ab8f145c7dee0522e833f09154b3d59a82baf3 Mon Sep 17 00:00:00 2001 From: whwyy Date: Mon, 16 Dec 2024 15:55:29 +0800 Subject: [PATCH] eee --- src/Annotate/ContentType.php | 17 - src/Annotate/ResponseContentType.php | 19 + src/ContentType.php | 1287 +++++++++++++------------- 3 files changed, 663 insertions(+), 660 deletions(-) delete mode 100644 src/Annotate/ContentType.php create mode 100644 src/Annotate/ResponseContentType.php diff --git a/src/Annotate/ContentType.php b/src/Annotate/ContentType.php deleted file mode 100644 index 7cb0a40..0000000 --- a/src/Annotate/ContentType.php +++ /dev/null @@ -1,17 +0,0 @@ - 'application/x-', - self::OCTET_STREAM => 'application/octet-stream', - self::PDF => 'application/pdf', - self::AI, self::EPS, self::PS => 'application/postscript', - self::ATOM_XML => 'application/atom+xml', - self::JS => 'application/ecmascript', - self::EDI_X12 => 'application/EDI-X12', - self::EDIFACT => 'application/EDIFACT', - self::JSON => 'application/json; charset=utf-8', - self::JAVASCRIPT => 'application/javascript; charset=utf-8', - self::OGG => 'application/ogg', - self::RDF => 'application/rdf+xml', - self::RSS_XML => 'application/rss+xml', - self::SOAP_XML => 'application/soap+xml', - self::WOFF => 'application/font-woff', - self::XHTML_XML => 'application/xhtml+xml', - self::XML => 'application/xml; charset=utf-8', - self::DTD => 'application/xml-dtd', - self::XOP_XML => 'application/xop+xml', - self::ZIP => 'application/zip', - self::GZIP => 'application/gzip', - self::XLS => 'application/x-xls', - self::X_001 => 'application/x-001', - self::X_301 => 'application/x-301', - self::X_906 => 'application/x-906', - self::A11 => 'application/x-a11', - self::AWF => 'application/vnd.adobe.workflow', - self::BMP => 'application/x-bmp', - self::C4T => 'application/x-c4t', - self::CAL => 'application/x-cals', - self::CDF => 'application/x-netcdf', - self::CEL => 'application/x-cel', - self::CG4, self::G4, self::IG4 => 'application/x-g4', - self::CIT => 'application/x-cit', - self::BOT => 'application/x-bot', - self::C90 => 'application/x-c90', - self::CAT => 'application/vnd.ms-pki.seccat', - self::CDR => 'application/x-cdr', - self::CER, self::CRT, self::DER => 'application/x-x509-ca-cert', - self::CGM => 'application/x-cgm', - self::CMX => 'application/x-cmx', - self::CRL => 'application/pkix-crl', - self::CSI => 'application/x-csi', - self::CUT => 'application/x-cut', - self::DBM => 'application/x-dbm', - self::CMP => 'application/x-cmp', - self::COT => 'application/x-cot', - self::DBF => 'application/x-dbf', - self::DBX => 'application/x-dbx', - self::DCX => 'application/x-dcx', - self::DGN => 'application/x-dgn', - self::DLL, self::EXE => 'application/x-msdownload', - self::DOT, self::DOC, self::RTF, self::WIZ => 'application/msword', - self::DIB => 'application/x-dib', - self::DRW => 'application/x-drw', - self::DWF => 'application/x-dwf', - self::DXB => 'application/x-dxb', - self::EDN => 'application/vnd.adobe.edn', - self::DWG => 'application/x-dwg', - self::DXF => 'application/x-dxf', - self::EMF => 'application/x-emf', - self::EPI => 'application/x-epi', - self::FDF => 'application/vnd.fdf', - self::X_EPS, self::X_PS => 'application/x-ps', - self::ETD => 'application/x-ebx', - self::FIF => 'application/fractals', - self::FRM => 'application/x-frm', - self::GBR => 'application/x-gbr', - self::GL2 => 'application/x-gl2', - self::HGL => 'application/x-hgl', - self::HPG => 'application/x-hpgl', - self::HQX => 'application/mac-binhex40', - self::HTA => 'application/hta', - self::GP4 => 'application/x-gp4', - self::HMR => 'application/x-hmr', - self::HPL => 'application/x-hpl', - self::HRF => 'application/x-hrf', - self::ICB => 'application/x-icb', - self::ICO => 'application/x-ico', - self::III => 'application/x-iphone', - self::INS, self::ISP => 'application/x-internet-signup', - self::IFF => 'application/x-iff', - self::IGS => 'application/x-igs', - self::IMG => 'application/x-img', - self::JPE => 'application/x-jpe', - self::X_JAVASCRIPT, self::LS, self::MOCHA => 'application/x-javascript', - self::JPG => 'application/x-jpg', - self::LAR => 'application/x-laplayer-reg', - self::LATEX => 'application/x-latex', - self::LBM => 'application/x-lbm', - self::LTR => 'application/x-ltr', - self::MAN => 'application/x-troff-man', - self::MDB => 'application/msaccess', - self::MAC => 'application/x-mac', - self::X_MDB => 'application/x-mdb', - self::MFP, self::SWF => 'application/x-shockwave-flash', - self::MI => 'application/x-mi', - self::MIL => 'application/x-mil', - self::MPD, self::MPP, self::MPT, self::MPW, self::MPX => 'application/vnd.ms-project', - self::MXP => 'application/x-mmxp', - self::NRF => 'application/x-nrf', - self::OUT => 'application/x-out', - self::P12, self::PFX => 'application/x-pkcs12', - self::P7C, self::P7M => 'application/pkcs7-mime', - self::P7R => 'application/x-pkcs7-certreqresp', - self::PC5 => 'application/x-pc5', - self::PCL => 'application/x-pcl', - self::PDX => 'application/vnd.adobe.pdx', - self::PGL => 'application/x-pgl', - self::PKO => 'application/vnd.ms-pki.pko', - self::P10 => 'application/pkcs10', - self::P7B, self::SPC => 'application/x-pkcs7-certificates', - self::P7S => 'application/pkcs7-signature', - self::PCI => 'application/x-pci', - self::PCX => 'application/x-pcx', - self::PIC => 'application/x-pic', - self::PL => 'application/x-perl', - self::PLT => 'application/x-plt', - self::PNG => 'application/x-png', - self::PPA, self::PPS, self::PWZ, self::POT, self::PPT => 'application/vnd.ms-powerpoint', - self::X_PPT => 'application/x-ppt', - self::PRF => 'application/pics-rules', - self::PRT => 'application/x-prt', - self::RA => 'audio/vnd.rn-realaudio', - self::RAS => 'application/x-ras', - self::PPM => 'application/x-ppm', - self::PR => 'application/x-pr', - self::PRN => 'application/x-prn', - self::PTN => 'application/x-ptn', - self::RED => 'application/x-red', - self::RJS => 'application/vnd.rn-realsystem-rjs', - self::RLC => 'application/x-rlc', - self::RM => 'application/vnd.rn-realmedia', - self::RAT => 'application/rat-file', - self::REC => 'application/vnd.rn-recording', - self::RGB => 'application/x-rgb', - self::RJT => 'application/vnd.rn-realsystem-rjt', - self::RLE => 'application/x-rle', - self::RMF => 'application/vnd.adobe.rmf', - self::RMJ => 'application/vnd.rn-realsystem-rmj', - self::RMP => 'application/vnd.rn-rn_music_package', - self::RMVB => 'application/vnd.rn-realmedia-vbr', - self::RNX => 'application/vnd.rn-realplayer', - self::RPM => 'audio/x-pn-realaudio-plugin', - self::RMS => 'application/vnd.rn-realmedia-secure', - self::RMX => 'application/vnd.rn-realsystem-rmx', - self::RSML => 'application/vnd.rn-rsml', - self::RV => 'video/vnd.rn-realvideo', - self::SAT => 'application/x-sat', - self::SDW => 'application/x-sdw', - self::SLB => 'application/x-slb', - self::X_RTF => 'application/x-rtf', - self::SAM => 'application/x-sam', - self::SDP => 'application/sdp', - self::SIT => 'application/x-stuffit', - self::SLD => 'application/x-sld', - self::SMI, self::SMIL => 'application/smil', - self::SMK => 'application/x-smk', - self::SPL => 'application/futuresplash', - self::SSM => 'application/streamingmedia', - self::STL => 'application/vnd.ms-pki.stl', - self::SST => 'application/vnd.ms-pki.certstore', - self::TDF => 'application/x-tdf', - self::TGA => 'application/x-tga', - self::STY => 'application/x-sty', - self::TG4 => 'application/x-tg4', - self::TIF => 'application/x-tif', - self::VDX, self::VST, self::VSW, self::VTX, self::VND_VISIO, self::VSS, self::VSX => 'application/vnd.visio', - self::VPG => 'application/x-vpeg005', - self::VSD => 'application/x-vsd', - self::TORRENT => 'application/x-bittorrent', - self::VDA => 'application/x-vda', - self::X_VST => 'application/x-vst', - self::WB1 => 'application/x-wb1', - self::WB3 => 'application/x-wb3', - self::WK4 => 'application/x-wk4', - self::WKS => 'application/x-wks', - self::WB2 => 'application/x-wb2', - self::WK3 => 'application/x-wk3', - self::WKQ => 'application/x-wkq', - self::WMF => 'application/x-wmf', - self::WMD => 'application/x-ms-wmd', - self::WP6 => 'application/x-wp6', - self::WPG => 'application/x-wpg', - self::WQ1 => 'application/x-wq1', - self::WRI => 'application/x-wri', - self::WS, self::WS2 => 'application/x-ws', - self::WMZ => 'application/x-ms-wmz', - self::WPD => 'application/x-wpd', - self::WPL => 'application/vnd.ms-wpl', - self::WR1 => 'application/x-wr1', - self::WRK => 'application/x-wrk', - self::XDP => 'application/vnd.adobe.xdp', - self::XFD => 'application/vnd.adobe.xfd', - self::XFDF => 'application/vnd.adobe.xfdf', - self::VND_MS_EXCEL => 'application/vnd.ms-excel', - self::XWD => 'application/x-xwd', - self::SIS, self::SISX => 'application/vnd.symbian.install', - self::X_T => 'application/x-x_t', - self::APK => 'application/vnd.android.package-archive', - self::X_B => 'application/x-x_b', - self::IPA => 'application/vnd.iphone', - self::XAP => 'application/x-silverlight-app', - self::XLW => 'application/x-xlw', - self::XPL, self::PLS => 'audio/scpls', - self::ANV => 'application/x-anv', - self::UIN => 'application/x-icq', - self::H323 => 'text/h323', - self::BIZ, self::CML, self::DCD, self::X_DTD, self::FO, self::ENT, self::MATH, self::MML, self::MTX, self::X_RDF, self::SPP, self::SVG, self::TLD, self::VML, self::TSD, self::VXML, self::WSDL, self::XDR, self::XSD, self::XQL, self::XSLT, self::X_XML, self::XQ, self::XQUERY, self::XSL => 'text/xml; charset=utf-8', - self::ASA => 'text/asa', - self::ASP => 'text/asp', - self::CSS => 'text/css', - self::CSV => 'text/csv', - self::HTC => 'text/x-component', - self::HTML, self::STM, self::HTX, self::HTM, self::JSP, self::PLG, self::XHTML => 'text/html; charset=utf-8', - self::HTT => 'text/webviewhtml', - self::RT => 'text/vnd.rn-realtext', - self::SOL, self::SOR => 'text/plain', - self::TXT => 'text/plain纯文字内容', - self::ULS => 'text/iuls', - self::VCF => 'text/x-vcard', - self::WML => 'text/vnd.wap.wml', - self::WSC => 'text/scriptlet', - self::ODC => 'text/x-ms-odc', - self::R3T => 'text/vnd.rn-realtext3d', - self::ACP => 'audio/x-mei-aac', - self::AIF, self::AIFF, self::AIFC => 'audio/aiff', - self::AU, self::SND => 'audio/basic', - self::LA1 => 'audio/x-liquid-file', - self::LAVS => 'audio/x-liquid-secure', - self::LMSFF => 'audio/x-la-lms', - self::M3U => 'audio/mpegurl', - self::MIDI, self::MID, self::RMI => 'audio/mid', - self::MP2 => 'audio/mp2', - self::MP3 => 'audio/mp3', - self::MP4 => 'audio/mp4', - self::MND => 'audio/x-musicnet-download', - self::MP1 => 'audio/mp1', - self::MNS => 'audio/x-musicnet-stream', - self::MPGA => 'audio/rn-mpeg', - self::RAM, self::RMM => 'audio/x-pn-realaudio', - self::WAV => 'audio/wav', - self::WAX => 'audio/x-ms-wax', - self::WMA => 'audio/x-ms-wma', - self::ASF, self::ASX => 'video/x-ms-asf', - self::AVI => 'video/avi', - self::IVF => 'video/x-ivf', - self::M1V, self::M2V, self::MPE, self::MPS => 'video/x-mpeg', - self::M4E, self::X_MP4 => 'video/mpeg4', - self::MOVIE => 'video/x-sgi-movie', - self::MP2V, self::MPV2 => 'video/mpeg', - self::MPA => 'video/x-mpg', - self::MPG, self::MPEG, self::MPV => 'video/mpg', - self::WM => 'video/x-ms-wm', - self::WMV => 'video/x-ms-wmv', - self::WMX => 'video/x-ms-wmx', - self::WVX => 'video/x-ms-wvx', - self::TIFF, self::X_TIF, self::X_TIFF => 'image/tiff', - self::FAX => 'image/fax', - self::GIF => 'image/gif', - self::ICON => 'image/x-icon', - self::JFIF, self::X_JPE, self::JPEG, self::X_JPG => 'image/jpeg', - self::NET => 'image/pnetvue', - self::X_PNG => 'image/png', - self::RP => 'image/vnd.rn-realpix', - self::WBMP => 'image/vnd.wap.wbmp', - self::EML, self::MHT, self::MHTML, self::NWS => 'message/rfc822', - self::D_907 => 'drawing/907', - self::SLK => 'drawing/x-slk', - self::TOP => 'drawing/x-top', - self::JAVA_CLASS, self::JAVA => 'java/*', - self::X_DWF => 'Model/vnd.dwf' - }; - } + /** + * @param $method + * + * @return string + */ + public function toString(): string + { + return match ($this) { + self::X => 'application/x-', + self::OCTET_STREAM => 'application/octet-stream', + self::PDF => 'application/pdf', + self::AI, self::EPS, self::PS => 'application/postscript', + self::ATOM_XML => 'application/atom+xml', + self::JS => 'application/ecmascript', + self::EDI_X12 => 'application/EDI-X12', + self::EDIFACT => 'application/EDIFACT', + self::JSON => 'application/json; charset=utf-8', + self::JAVASCRIPT => 'application/javascript; charset=utf-8', + self::OGG => 'application/ogg', + self::RDF => 'application/rdf+xml', + self::RSS_XML => 'application/rss+xml', + self::SOAP_XML => 'application/soap+xml', + self::WOFF => 'application/font-woff', + self::XHTML_XML => 'application/xhtml+xml', + self::XML => 'application/xml; charset=utf-8', + self::DTD => 'application/xml-dtd', + self::XOP_XML => 'application/xop+xml', + self::ZIP => 'application/zip', + self::GZIP => 'application/gzip', + self::XLS => 'application/x-xls', + self::X_001 => 'application/x-001', + self::X_301 => 'application/x-301', + self::X_906 => 'application/x-906', + self::A11 => 'application/x-a11', + self::AWF => 'application/vnd.adobe.workflow', + self::BMP => 'application/x-bmp', + self::C4T => 'application/x-c4t', + self::CAL => 'application/x-cals', + self::CDF => 'application/x-netcdf', + self::CEL => 'application/x-cel', + self::CG4, self::G4, self::IG4 => 'application/x-g4', + self::CIT => 'application/x-cit', + self::BOT => 'application/x-bot', + self::C90 => 'application/x-c90', + self::CAT => 'application/vnd.ms-pki.seccat', + self::CDR => 'application/x-cdr', + self::CER, self::CRT, self::DER => 'application/x-x509-ca-cert', + self::CGM => 'application/x-cgm', + self::CMX => 'application/x-cmx', + self::CRL => 'application/pkix-crl', + self::CSI => 'application/x-csi', + self::CUT => 'application/x-cut', + self::DBM => 'application/x-dbm', + self::CMP => 'application/x-cmp', + self::COT => 'application/x-cot', + self::DBF => 'application/x-dbf', + self::DBX => 'application/x-dbx', + self::DCX => 'application/x-dcx', + self::DGN => 'application/x-dgn', + self::DLL, self::EXE => 'application/x-msdownload', + self::DOT, self::DOC, self::RTF, self::WIZ => 'application/msword', + self::DIB => 'application/x-dib', + self::DRW => 'application/x-drw', + self::DWF => 'application/x-dwf', + self::DXB => 'application/x-dxb', + self::EDN => 'application/vnd.adobe.edn', + self::DWG => 'application/x-dwg', + self::DXF => 'application/x-dxf', + self::EMF => 'application/x-emf', + self::EPI => 'application/x-epi', + self::FDF => 'application/vnd.fdf', + self::X_EPS, self::X_PS => 'application/x-ps', + self::ETD => 'application/x-ebx', + self::FIF => 'application/fractals', + self::FRM => 'application/x-frm', + self::GBR => 'application/x-gbr', + self::GL2 => 'application/x-gl2', + self::HGL => 'application/x-hgl', + self::HPG => 'application/x-hpgl', + self::HQX => 'application/mac-binhex40', + self::HTA => 'application/hta', + self::GP4 => 'application/x-gp4', + self::HMR => 'application/x-hmr', + self::HPL => 'application/x-hpl', + self::HRF => 'application/x-hrf', + self::ICB => 'application/x-icb', + self::ICO => 'application/x-ico', + self::III => 'application/x-iphone', + self::INS, self::ISP => 'application/x-internet-signup', + self::IFF => 'application/x-iff', + self::IGS => 'application/x-igs', + self::IMG => 'application/x-img', + self::JPE => 'application/x-jpe', + self::X_JAVASCRIPT, self::LS, self::MOCHA => 'application/x-javascript', + self::JPG => 'application/x-jpg', + self::LAR => 'application/x-laplayer-reg', + self::LATEX => 'application/x-latex', + self::LBM => 'application/x-lbm', + self::LTR => 'application/x-ltr', + self::MAN => 'application/x-troff-man', + self::MDB => 'application/msaccess', + self::MAC => 'application/x-mac', + self::X_MDB => 'application/x-mdb', + self::MFP, self::SWF => 'application/x-shockwave-flash', + self::MI => 'application/x-mi', + self::MIL => 'application/x-mil', + self::MPD, self::MPP, self::MPT, self::MPW, self::MPX => 'application/vnd.ms-project', + self::MXP => 'application/x-mmxp', + self::NRF => 'application/x-nrf', + self::OUT => 'application/x-out', + self::P12, self::PFX => 'application/x-pkcs12', + self::P7C, self::P7M => 'application/pkcs7-mime', + self::P7R => 'application/x-pkcs7-certreqresp', + self::PC5 => 'application/x-pc5', + self::PCL => 'application/x-pcl', + self::PDX => 'application/vnd.adobe.pdx', + self::PGL => 'application/x-pgl', + self::PKO => 'application/vnd.ms-pki.pko', + self::P10 => 'application/pkcs10', + self::P7B, self::SPC => 'application/x-pkcs7-certificates', + self::P7S => 'application/pkcs7-signature', + self::PCI => 'application/x-pci', + self::PCX => 'application/x-pcx', + self::PIC => 'application/x-pic', + self::PL => 'application/x-perl', + self::PLT => 'application/x-plt', + self::X_PNG => 'application/x-png', + self::PPA, self::PPS, self::PWZ, self::POT, self::PPT => 'application/vnd.ms-powerpoint', + self::X_PPT => 'application/x-ppt', + self::PRF => 'application/pics-rules', + self::PRT => 'application/x-prt', + self::RA => 'audio/vnd.rn-realaudio', + self::RAS => 'application/x-ras', + self::PPM => 'application/x-ppm', + self::PR => 'application/x-pr', + self::PRN => 'application/x-prn', + self::PTN => 'application/x-ptn', + self::RED => 'application/x-red', + self::RJS => 'application/vnd.rn-realsystem-rjs', + self::RLC => 'application/x-rlc', + self::RM => 'application/vnd.rn-realmedia', + self::RAT => 'application/rat-file', + self::REC => 'application/vnd.rn-recording', + self::RGB => 'application/x-rgb', + self::RJT => 'application/vnd.rn-realsystem-rjt', + self::RLE => 'application/x-rle', + self::RMF => 'application/vnd.adobe.rmf', + self::RMJ => 'application/vnd.rn-realsystem-rmj', + self::RMP => 'application/vnd.rn-rn_music_package', + self::RMVB => 'application/vnd.rn-realmedia-vbr', + self::RNX => 'application/vnd.rn-realplayer', + self::RPM => 'audio/x-pn-realaudio-plugin', + self::RMS => 'application/vnd.rn-realmedia-secure', + self::RMX => 'application/vnd.rn-realsystem-rmx', + self::RSML => 'application/vnd.rn-rsml', + self::RV => 'video/vnd.rn-realvideo', + self::SAT => 'application/x-sat', + self::SDW => 'application/x-sdw', + self::SLB => 'application/x-slb', + self::X_RTF => 'application/x-rtf', + self::SAM => 'application/x-sam', + self::SDP => 'application/sdp', + self::SIT => 'application/x-stuffit', + self::SLD => 'application/x-sld', + self::SMI, self::SMIL => 'application/smil', + self::SMK => 'application/x-smk', + self::SPL => 'application/futuresplash', + self::SSM => 'application/streamingmedia', + self::STL => 'application/vnd.ms-pki.stl', + self::SST => 'application/vnd.ms-pki.certstore', + self::TDF => 'application/x-tdf', + self::TGA => 'application/x-tga', + self::STY => 'application/x-sty', + self::TG4 => 'application/x-tg4', + self::TIF => 'application/x-tif', + self::VDX, self::VST, self::VSW, self::VTX, self::VND_VISIO, self::VSS, self::VSX => 'application/vnd.visio', + self::VPG => 'application/x-vpeg005', + self::VSD => 'application/x-vsd', + self::TORRENT => 'application/x-bittorrent', + self::VDA => 'application/x-vda', + self::X_VST => 'application/x-vst', + self::WB1 => 'application/x-wb1', + self::WB3 => 'application/x-wb3', + self::WK4 => 'application/x-wk4', + self::WKS => 'application/x-wks', + self::WB2 => 'application/x-wb2', + self::WK3 => 'application/x-wk3', + self::WKQ => 'application/x-wkq', + self::WMF => 'application/x-wmf', + self::WMD => 'application/x-ms-wmd', + self::WP6 => 'application/x-wp6', + self::WPG => 'application/x-wpg', + self::WQ1 => 'application/x-wq1', + self::WRI => 'application/x-wri', + self::WS, self::WS2 => 'application/x-ws', + self::WMZ => 'application/x-ms-wmz', + self::WPD => 'application/x-wpd', + self::WPL => 'application/vnd.ms-wpl', + self::WR1 => 'application/x-wr1', + self::WRK => 'application/x-wrk', + self::XDP => 'application/vnd.adobe.xdp', + self::XFD => 'application/vnd.adobe.xfd', + self::XFDF => 'application/vnd.adobe.xfdf', + self::VND_MS_EXCEL => 'application/vnd.ms-excel', + self::XWD => 'application/x-xwd', + self::SIS, self::SISX => 'application/vnd.symbian.install', + self::X_T => 'application/x-x_t', + self::APK => 'application/vnd.android.package-archive', + self::X_B => 'application/x-x_b', + self::IPA => 'application/vnd.iphone', + self::XAP => 'application/x-silverlight-app', + self::XLW => 'application/x-xlw', + self::XPL, self::PLS => 'audio/scpls', + self::ANV => 'application/x-anv', + self::UIN => 'application/x-icq', + self::H323 => 'text/h323', + self::BIZ, self::CML, self::DCD, self::X_DTD, self::FO, self::ENT, self::MATH, self::MML, self::MTX, self::X_RDF, self::SPP, self::SVG, self::TLD, self::VML, self::TSD, self::VXML, self::WSDL, self::XDR, self::XSD, self::XQL, self::XSLT, self::X_XML, self::XQ, self::XQUERY, self::XSL => 'text/xml; charset=utf-8', + self::ASA => 'text/asa', + self::ASP => 'text/asp', + self::CSS => 'text/css', + self::CSV => 'text/csv', + self::HTC => 'text/x-component', + self::HTML, self::STM, self::HTX, self::HTM, self::JSP, self::PLG, self::XHTML => 'text/html; charset=utf-8', + self::HTT => 'text/webviewhtml', + self::RT => 'text/vnd.rn-realtext', + self::SOL, self::SOR => 'text/plain', + self::TXT => 'text/plain纯文字内容', + self::ULS => 'text/iuls', + self::VCF => 'text/x-vcard', + self::WML => 'text/vnd.wap.wml', + self::WSC => 'text/scriptlet', + self::ODC => 'text/x-ms-odc', + self::R3T => 'text/vnd.rn-realtext3d', + self::ACP => 'audio/x-mei-aac', + self::AIF, self::AIFF, self::AIFC => 'audio/aiff', + self::AU, self::SND => 'audio/basic', + self::LA1 => 'audio/x-liquid-file', + self::LAVS => 'audio/x-liquid-secure', + self::LMSFF => 'audio/x-la-lms', + self::M3U => 'audio/mpegurl', + self::MIDI, self::MID, self::RMI => 'audio/mid', + self::MP2 => 'audio/mp2', + self::MP3 => 'audio/mp3', + self::MP4 => 'audio/mp4', + self::MND => 'audio/x-musicnet-download', + self::MP1 => 'audio/mp1', + self::MNS => 'audio/x-musicnet-stream', + self::MPGA => 'audio/rn-mpeg', + self::RAM, self::RMM => 'audio/x-pn-realaudio', + self::WAV => 'audio/wav', + self::WAX => 'audio/x-ms-wax', + self::WMA => 'audio/x-ms-wma', + self::ASF, self::ASX => 'video/x-ms-asf', + self::AVI => 'video/avi', + self::IVF => 'video/x-ivf', + self::M1V, self::M2V, self::MPE, self::MPS => 'video/x-mpeg', + self::M4E, self::X_MP4 => 'video/mpeg4', + self::MOVIE => 'video/x-sgi-movie', + self::MP2V, self::MPV2 => 'video/mpeg', + self::MPA => 'video/x-mpg', + self::MPG, self::MPEG, self::MPV => 'video/mpg', + self::WM => 'video/x-ms-wm', + self::WMV => 'video/x-ms-wmv', + self::WMX => 'video/x-ms-wmx', + self::WVX => 'video/x-ms-wvx', + self::TIFF, self::X_TIF, self::X_TIFF => 'image/tiff', + self::FAX => 'image/fax', + self::GIF => 'image/gif', + self::ICON => 'image/x-icon', + self::JFIF, self::X_JPE, self::JPEG, self::X_JPG => 'image/jpeg', + self::NET => 'image/pnetvue', + self::PNG => 'image/png', + self::RP => 'image/vnd.rn-realpix', + self::WBMP => 'image/vnd.wap.wbmp', + self::EML, self::MHT, self::MHTML, self::NWS => 'message/rfc822', + self::D_907 => 'drawing/907', + self::SLK => 'drawing/x-slk', + self::TOP => 'drawing/x-top', + self::JAVA_CLASS, self::JAVA => 'java/*', + self::X_DWF => 'Model/vnd.dwf' + }; + } }