tav-media
Version:
Cross platform media editing framework
23 lines (22 loc) • 650 B
TypeScript
/**
* Utils for HTTP request.
*/
export declare class Http {
/**
* Set the base url of the assets.
*/
static baseUrl: string;
/**
* Get the absolute url of a relative url.
* @param clipAssetPath The relative path of the asset.
* @returns Full url of the asset.
*/
static getUrl(clipAssetPath: string): string;
/**
* Send a Fetch request.
* @param input The url or Request object to fetch.
* @param init The RequestInit object to modify the request.
* @returns The Fetch API Response object.
*/
static fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
}