initial vitepress site with basic nav

This commit is contained in:
mrflos 2023-05-20 19:37:42 +03:00
parent a7df2e049d
commit 2029f16583
1900 changed files with 1014692 additions and 0 deletions

View file

@ -0,0 +1,12 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const MethodEnum = {
Delete: 'DELETE',
Get: 'GET',
Post: 'POST',
Put: 'PUT',
};
exports.MethodEnum = MethodEnum;

View file

@ -0,0 +1,66 @@
export declare type Destroyable = {
/**
* Destroy any sockets that are currently in use by the agent.
*
* It is usually not necessary to do this. However, if using an agent with keepAlive enabled, then
* it is best to explicitly shut down the agent when it will no longer be used. Otherwise, sockets
* may hang open for quite a long time before the server terminates them.
*/
readonly destroy: () => Readonly<Promise<void>>;
};
export declare const MethodEnum: Readonly<Record<string, MethodType>>;
export declare type MethodType = 'DELETE' | 'GET' | 'POST' | 'PUT';
export declare type Request = {
/**
* The headers of the request.
*/
readonly headers: Readonly<Record<string, string>>;
/**
* The method of the request. `GET`, etc.
*/
readonly method: MethodType;
/**
* The complete url of the request, with the protocol.
*/
readonly url: string;
/**
* The timeout to stablish a connection with the server.
*/
readonly connectTimeout: number;
/**
* The timeout to receive the response.
*/
readonly responseTimeout: number;
/**
* The data to be transfered to the server.
*/
readonly data: string | undefined;
};
export declare type Requester = {
/**
* Sends the given `request` to the server.
*/
readonly send: (request: Request) => Readonly<Promise<Response>>;
};
export declare type Response = {
/**
* The raw response from the server.
*/
content: string;
/**
* If the request timeouted.
*/
isTimedOut: boolean;
/**
* The http status code.
*/
status: number;
};
export { }

View file

@ -0,0 +1,8 @@
const MethodEnum = {
Delete: 'DELETE',
Get: 'GET',
Post: 'POST',
Put: 'PUT',
};
export { MethodEnum };