* Creates a new `Header` instance. * * @param input - An object containing `key` and `value` properties, or a string. * If not provided, defaults to an object with empty `key` and `value`. * @param name - An optional name for the header. * @returns A new `Header` instan
(input?: { key: string; value: string } | string, name?: string)
| 95 | * @returns A new `Header` instance. |
| 96 | */ |
| 97 | static create(input?: { key: string; value: string } | string, name?: string): Header { |
| 98 | return new Header(input || { key: '', value: '' }, name); |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Determines if the given object is a Header object. |
no outgoing calls