Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
Util.md26 linesDownload Raw Back to api
1# Util
2
3Utility API for third-party implementations of the dispatcher API.
4
5## `parseHeaders(headers, [obj])`
6
7Receives a header object and returns the parsed value.
8
9Arguments:
10
11- **headers** `(Buffer | string | (Buffer | string)[])[]` (required) - Header object.
12
13- **obj** `Record<string, string | string[]>` (optional) - Object to specify a proxy object. The parsed value is assigned to this object. But, if **headers** is an object, it is not used.
14
15Returns: `Record<string, string | string[]>` If **obj** is specified, it is equivalent to **obj**.
16
17## `headerNameToString(value)`
18
19Retrieves a header name and returns its lowercase value.
20
21Arguments:
22
23- **value** `string | Buffer` (required) - Header name.
24
25Returns: `string`
26 
codekingpro/portable-devtools · Team Ai