UNPKG

@zazuko/trifid-plugin-sparql-proxy

Version:

Trifid plugin for sparql-proxy

31 lines 1.02 kB
/** * Generate the value for the Authorization header for basic authentication. * * @param user The username. * @param password The password of that user. * @returns The value of the Authorization header to use. */ export declare const authBasicHeader: (user: string, password: string) => string; /** * Assert that the value is an object. * Return the value if it is an object, otherwise return false. * * @param value The value to assert. * @returns The value, if it is an object, otherwise false. */ export declare const assertObject: (value: unknown) => Record<string, unknown> | false; /** * Return the length of an object. * * @param obj The object to get the length of. * @returns The length of the object. */ export declare const objectLength: (obj: unknown) => number; /** * Check if a string is a valid URL. * * @param url The URL to check. * @returns True if the URL is valid, false otherwise. */ export declare const isValidUrl: (url: unknown) => boolean; //# sourceMappingURL=utils.d.ts.map