appwrite-utils
Version:
`appwrite-utils` is a comprehensive TypeScript library designed to streamline the development process for Appwrite projects. It provides a suite of utilities and helper functions that facilitate data manipulation, schema management, and seamless integrati
39 lines (38 loc) • 831 B
TypeScript
export declare class AppwriteRequest {
headers: {
[key: string]: string;
};
method: string;
host: string;
scheme: string;
query: {
[key: string]: string;
};
queryString: string;
port?: number;
url: string;
path: string;
private _bodyBinary;
constructor(data: {
headers?: {
[key: string]: string;
};
method?: string;
host?: string;
scheme?: string;
query?: {
[key: string]: string;
};
queryString?: string;
port?: number;
url?: string;
path?: string;
bodyBinary?: Buffer;
});
get contentType(): string;
get bodyBinary(): Buffer;
get bodyText(): string;
get bodyJson(): any;
get bodyRaw(): string;
get body(): any;
}