Closed niklaskorz closed 5 years ago
Also, I think status
and statusText
should be set to 200 per default? I'll see if I find something in that regard in the specs.
Edit: It's defined right in the spec, as
dictionary ResponseInit {
unsigned short status = 200;
ByteString statusText = "";
HeadersInit headers;
};
I'll update the pull request accordingly.
Thanks! I've added the status(Text) defaults too, and released in 2.0.3
According to the fetch spec, all parameters of the Response constructor are optional: