mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-29 03:40:56 -05:00
Added net
module
This commit is contained in:
parent
25f06b7d0a
commit
7780bda3f1
1 changed files with 80 additions and 0 deletions
80
src/utils/net/index.ts
Normal file
80
src/utils/net/index.ts
Normal 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";
|
Loading…
Reference in a new issue