Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
623 B
Text
18 lines
623 B
Text
export namespace util {
|
|
/**
|
|
* Retrieves a header name and returns its lowercase value.
|
|
* @param value Header name
|
|
*/
|
|
export function headerNameToString(value: string | Buffer): string;
|
|
|
|
/**
|
|
* Receives a header object and returns the parsed value.
|
|
* @param headers Header object
|
|
* @param obj Object to specify a proxy object. Used to assign parsed values.
|
|
* @returns If `obj` is specified, it is equivalent to `obj`.
|
|
*/
|
|
export function parseHeaders(
|
|
headers: (Buffer | string | (Buffer | string)[])[],
|
|
obj?: Record<string, string | string[]>
|
|
): Record<string, string | string[]>;
|
|
}
|