- From: Dominic Farolino <notifications@github.com>
- Date: Thu, 21 Dec 2017 04:47:30 +0000 (UTC)
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 21 December 2017 04:47:53 UTC
domfarolino commented on this pull request. > - 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 + {{Request/headers}}. + + <dt>{{RequestInit/body}} + <dd>Set to a {{Body}} object or null to set <var>request</var>'s <a>body</a>. I opted for linking if that's ok. I figured that soon `BodyInit` will have its own domintro so what a developer might get linked too shouldn't be too tough to understand. -- 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_r158196430
Received on Thursday, 21 December 2017 04:47:53 UTC