Re: Fetch API

Ugh, I meant "Request" for a lot of that:

I'd like to add similar-style factories to *Request* which set header &
mode defaults

Request.image(url);
Request.font(url);

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


On 3 June 2014 14:01, Jake Archibald <jaffathecake@gmail.com> wrote:

> 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:13:18 UTC