UNPKG

wttp-handler

Version:

WTTP handler for fetching data from WTTP sites

16 lines 1.01 kB
import { RangeStruct, IWTTPGateway, GETResponseStruct, LOCATEResponseSecureStruct, HEADResponseStruct, OPTIONSResponseStruct } from "@wttp/core"; export interface HEADOptions { ifModifiedSince?: number; ifNoneMatch?: string; } export interface LOCATEOptions extends HEADOptions { rangeChunks?: RangeStruct; } export interface GETOptions extends LOCATEOptions { rangeBytes?: RangeStruct; } export declare function wttpGET(gateway: IWTTPGateway, siteAddress: string, path: string, options: GETOptions): Promise<GETResponseStruct>; export declare function wttpLOCATE(gateway: IWTTPGateway, siteAddress: string, path: string, options: LOCATEOptions): Promise<LOCATEResponseSecureStruct>; export declare function wttpHEAD(gateway: IWTTPGateway, siteAddress: string, path: string, options: HEADOptions): Promise<HEADResponseStruct>; export declare function wttpOPTIONS(gateway: IWTTPGateway, siteAddress: string, path: string): Promise<OPTIONSResponseStruct>; //# sourceMappingURL=methods.d.ts.map