@fly/cdn
Version:
Fly's TypeScript CDN
25 lines (24 loc) • 524 B
TypeScript
/** @module HTTP */
import { sign } from 'aws4';
/** @hidden */
export interface Credentials {
accessKeyId: string;
secretAccessKey: string;
sessionToken?: string;
}
/** @hidden */
export interface RequestOptions {
path: string;
host?: string;
method?: string;
headers?: any;
service?: string;
region?: string;
}
/** @hidden */
declare const aws: {
fetch(opts: RequestOptions, credentials: Credentials): Promise<Response>;
sign: typeof sign;
};
/** @hidden */
export default aws;