Added net module

This commit is contained in:
Kir_Antipov 2023-02-16 13:05:22 +00:00
parent 25f06b7d0a
commit 7780bda3f1

80
src/utils/net/index.ts Normal file
View file

@ -0,0 +1,80 @@
export {
Fetch,
ConfigurableFetch,
FetchOptions,
fetch,
createFetch,
fetchDestinationEquals,
} from "./fetch";
export {
defaultResponse,
throwOnError,
simpleCache,
} from "./fetch-middlewares";
export {
UploadedFile as DownloadableFile,
} from "../../platforms/uploaded-file";
export {
FILE_PATH,
} from "./form-data";
export {
QueryString,
isQueryString,
} from "./query-string";
export {
HttpRequest,
} from "./http-request";
export {
HttpResponse,
HttpResponseType,
HttpResponseOptions,
} from "./http-response";
export {
HttpMethod,
httpMethodEquals,
canHttpMethodAcceptBody,
isGetHttpMethod,
isPostHttpMethod,
isDeleteHttpMethod,
isOptionsHttpMethod,
isPatchHttpMethod,
isPutHttpMethod,
isHeadHttpMethod,
isConnectHttpMethod,
isTraceHttpMethod,
} from "./http-method";
export {
HttpRequestBody,
isHttpRequestBody,
isStreamableHttpRequestBody,
} from "./http-request-body";
export {
Headers,
hasHeader,
getHeader,
setHeader,
setHeaders,
appendHeader,
appendHeaders,
setDefaultHeader,
setDefaultHeaders,
deleteHeader,
deleteHeaders,
cloneHeaders,
inferHttpRequestBodyHeaders,
} from "./headers";