Why doesn't the "body" member of RequestInit have a default value? #933
Labels
needs implementer interest
Moving the issue forward requires implementers to express interest
topic: api
The member is defined at https://fetch.spec.whatwg.org/#dom-requestinit-body as follows:
The only consumer of the
RequestInit
dictionary is https://fetch.spec.whatwg.org/#dom-request which does this:and
In both cases, "does not exist" and "exists but is null" are treated identically, so it seems like the IDL could just say:
and not worry about the "does not exist" case.
The text was updated successfully, but these errors were encountered: