- From: Adam Rice <notifications@github.com>
- Date: Wed, 03 Feb 2021 23:48:07 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/pull/1161/review/583103307@github.com>
@ricea approved this pull request. lgtm with suggestions. > + <dd><p>Returns the values of all headers whose name is <var>name</var>, separated by a comma and a + space. ```suggestion <dd><p>Returns as a string the values of all headers whose name is <var>name</var>, separated by a comma and a space. ``` > + + <dt><code><var>headers</var> . <a method for=Headers lt=delete()>delete</a>(<var>name</var>)</code> + <dd><p>Removes a header from <var>headers</var>. + + <dt><code><var>headers</var> . <a method for=Headers lt=get()>get</a>(<var>name</var>)</code> + <dd><p>Returns the values of all headers whose name is <var>name</var>, separated by a comma and a + space. + + <dt><code><var>headers</var> . <a method for=Headers lt=has()>has</a>(<var>name</var>)</code> + <dd><p>Returns whether there is a header whose name is <var>name</var>. + + <dt><code><var>headers</var> . <a method for=Headers lt=set()>set</a>(<var>name</var>, <var>value</var>)</code> + <dd><p>Replaces the value of the first header whose name is <var>name</var> with <var>value</var> + and removes any remaining headers whose name is <var>name</var>. + + <dt><code>for([<var>name</var>, <var>value</var>] of <var>headers</var>)</code> ```suggestion <dt><code>for(const [<var>name</var>, <var>value</var>] of <var>headers</var>)</code> ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/1161#pullrequestreview-583103307
Received on Thursday, 4 February 2021 07:48:19 UTC