UNPKG

@dooboostore/simple-boot-http-server

Version:
117 lines (113 loc) 4.99 kB
// src/codes/HttpHeaders.ts var HttpHeaders = /* @__PURE__ */ ((HttpHeaders2) => { HttpHeaders2["ContentLength"] = "Content-Length"; HttpHeaders2["ContentType"] = "Content-Type"; HttpHeaders2["ContentEncoding"] = "Content-Encoding"; HttpHeaders2["Accept"] = "Accept"; HttpHeaders2["Authorization"] = "Authorization"; HttpHeaders2["CacheControl"] = "Cache-Control"; HttpHeaders2["Connection"] = "Connection"; HttpHeaders2["Date"] = "Date"; HttpHeaders2["Host"] = "Host"; HttpHeaders2["Pragma"] = "Pragma"; HttpHeaders2["Trailer"] = "Trailer"; HttpHeaders2["TransferEncoding"] = "Transfer-Encoding"; HttpHeaders2["Upgrade"] = "Upgrade"; HttpHeaders2["Via"] = "Via"; HttpHeaders2["Warning"] = "Warning"; HttpHeaders2["AcceptCharset"] = "Accept-Charset"; HttpHeaders2["AcceptEncoding"] = "Accept-Encoding"; HttpHeaders2["AcceptLanguage"] = "Accept-Language"; HttpHeaders2["AccessControlAllowOrigin"] = "Access-Control-Allow-Origin"; HttpHeaders2["AccessControlAllowMethods"] = "Access-Control-Allow-Methods"; HttpHeaders2["AccessControlAllowHeaders"] = "Access-Control-Allow-Headers"; HttpHeaders2["AccessControlExposeHeaders"] = "Access-Control-Expose-Headers"; HttpHeaders2["Expect"] = "Expect"; HttpHeaders2["From"] = "From"; HttpHeaders2["MaxForwards"] = "Max-Forwards"; HttpHeaders2["Referer"] = "Referer"; HttpHeaders2["UserAgent"] = "User-Agent"; HttpHeaders2["Cookie"] = "Cookie"; HttpHeaders2["SetCookie"] = "Set-Cookie"; HttpHeaders2["Cookie2"] = "Cookie2"; HttpHeaders2["SetCookie2"] = "Set-Cookie2"; HttpHeaders2["Location"] = "Location"; HttpHeaders2["IfModifiedSince"] = "If-Modified-Since"; HttpHeaders2["IfUnmodifiedSince"] = "If-Unmodified-Since"; HttpHeaders2["IfMatch"] = "If-Match"; HttpHeaders2["IfNoneMatch"] = "If-None-Match"; HttpHeaders2["IfRange"] = "If-Range"; HttpHeaders2["Allow"] = "Allow"; HttpHeaders2["Server"] = "Server"; return HttpHeaders2; })(HttpHeaders || {}); // src/codes/HttpMethod.ts var HttpMethod = /* @__PURE__ */ ((HttpMethod2) => { HttpMethod2["GET"] = "GET"; HttpMethod2["POST"] = "POST"; HttpMethod2["PUT"] = "PUT"; HttpMethod2["DELETE"] = "DELETE"; HttpMethod2["PATCH"] = "PATCH"; HttpMethod2["HEAD"] = "HEAD"; HttpMethod2["OPTIONS"] = "OPTIONS"; HttpMethod2["TRACE"] = "TRACE"; HttpMethod2["CONNECT"] = "CONNECT"; return HttpMethod2; })(HttpMethod || {}); // src/codes/HttpStatus.ts var HttpStatus = /* @__PURE__ */ ((HttpStatus2) => { HttpStatus2[HttpStatus2["Ok"] = 200] = "Ok"; HttpStatus2[HttpStatus2["MovedPermanently"] = 301] = "MovedPermanently"; HttpStatus2[HttpStatus2["Found"] = 302] = "Found"; HttpStatus2[HttpStatus2["SeeOther"] = 303] = "SeeOther"; HttpStatus2[HttpStatus2["NotModified"] = 304] = "NotModified"; HttpStatus2[HttpStatus2["TemporaryRedirect"] = 307] = "TemporaryRedirect"; HttpStatus2[HttpStatus2["PermanentRedirect"] = 308] = "PermanentRedirect"; HttpStatus2[HttpStatus2["BadRequest"] = 400] = "BadRequest"; HttpStatus2[HttpStatus2["Unauthorized"] = 401] = "Unauthorized"; HttpStatus2[HttpStatus2["Forbidden"] = 403] = "Forbidden"; HttpStatus2[HttpStatus2["NotFound"] = 404] = "NotFound"; HttpStatus2[HttpStatus2["InternalServerError"] = 500] = "InternalServerError"; HttpStatus2[HttpStatus2["NotImplemented"] = 501] = "NotImplemented"; HttpStatus2[HttpStatus2["BadGateway"] = 502] = "BadGateway"; HttpStatus2[HttpStatus2["ServiceUnavailable"] = 503] = "ServiceUnavailable"; HttpStatus2[HttpStatus2["GatewayTimeout"] = 504] = "GatewayTimeout"; HttpStatus2[HttpStatus2["HttpVersionNotSupported"] = 505] = "HttpVersionNotSupported"; return HttpStatus2; })(HttpStatus || {}); // src/codes/Mimes.ts var Mimes = /* @__PURE__ */ ((Mimes2) => { Mimes2["ApplicationJson"] = "application/json"; Mimes2["ApplicationOctetStream"] = "application/octet-stream"; Mimes2["ApplicationXml"] = "application/xml"; Mimes2["ApplicationJsonPatch"] = "application/json-patch+json"; Mimes2["ApplicationXWwwFormUrlencoded"] = "application/x-www-form-urlencoded"; Mimes2["TextPlain"] = "text/plain"; Mimes2["TextHtml"] = "text/html"; Mimes2["All"] = "*/*"; Mimes2["TextCss"] = "text/css"; Mimes2["TextJavascript"] = "text/javascript"; Mimes2["TextXml"] = "text/xml"; Mimes2["TextXslt"] = "text/xslt"; Mimes2["TextXmlDtd"] = "text/xml-dtd"; Mimes2["TextPlainUtf8"] = "text/plain; charset=utf-8"; Mimes2["ImagePng"] = "image/png"; Mimes2["ImageGif"] = "image/gif"; Mimes2["ImageJpeg"] = "image/jpeg"; Mimes2["ImageSvg"] = "image/svg+xml"; Mimes2["ImageBmp"] = "image/bmp"; Mimes2["ImageTiff"] = "image/tiff"; Mimes2["ImagePdf"] = "application/pdf"; Mimes2["ImageXBmp"] = "image/x-bmp"; Mimes2["ImageXpixmap"] = "image/x-xpixmap"; Mimes2["ImageXxbm"] = "image/x-xbm"; Mimes2["MultipartFormData"] = "multipart/form-data"; return Mimes2; })(Mimes || {}); export { HttpHeaders, HttpMethod, HttpStatus, Mimes }; //# sourceMappingURL=index.js.map