- From: Dominic Farolino <notifications@github.com>
- Date: Thu, 21 Dec 2017 04:14:50 +0000 (UTC)
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 21 December 2017 04:15:16 UTC
domfarolino commented on this pull request. > @@ -4903,8 +4951,60 @@ initially a new {{AbortSignal}} object. <var>init</var>])</code> <dd>Returns a new <var>request</var> whose {{Request/url}} property is <var>input</var> if <var>input</var> is a string, and <var>input</var>'s {{Request/url}} if <var>input</var> is a - {{Request}} object. The optional <var>init</var> argument allows for setting attributes - appearing in {{RequestInit}} via object members of the same name. + {{Request}} object. + + <p>The optional <var>init</var> argument allows for setting properties appearing in {{RequestInit}} + via object members of the same name. These are the object members that can be used:</p> + + <dl> + <dt>{{RequestInit/method}} + <dd>Set to a string to set <var>request</var>'s {{Request/method}}. + + <dt>{{RequestInit/headers}} + <dd>Set to a {{Headers}} object or an array of two-item arrays to set <var>request</var>'s Ah I didn't know it could be an object literal! -- 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/620#discussion_r158193976
Received on Thursday, 21 December 2017 04:15:16 UTC