Methods
(static) marshal(string) → {Object}
Convert headers string into JavaScript object with lowercase header names
Parameters:
Name | Type | Description |
---|---|---|
string |
String | Headers string to be marshalled to JavaScript object |
- Source:
Returns:
- Type
- Object
(static) unmarshal(obj) → {String}
Convert JavaScript object to headers string, omitting request line
Parameters:
Name | Type | Description |
---|---|---|
obj |
Object | Object map containing key value data |
- Source:
Returns:
- Type
- String