Re: Fetch API

On 2 June 2014 00:08, Domenic Denicola <domenic@domenicdenicola.com> wrote:
>
> > Presumably RedirectResponse being a subtype would also be acceptable, as
> its .prototype.constructor would be RedirectResponse?
>
> Yeah, although I'm not sure there's a need to override any functionality
> here, so not sure that there's a need for subclassing.
>

Agreed. So Response.redirect(url, status)?

Btw, I'd like to add similar-style factories to Response which set header &
mode defaults

Response.image(url);
Response.font(url);

etc. Don't need these for the first pass though.

Received on Tuesday, 3 June 2014 13:02:04 UTC