W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2014

Re: Fetch API

From: Jake Archibald <jaffathecake@gmail.com>
Date: Tue, 3 Jun 2014 14:12:49 +0100
Message-ID: <CAJ5xic8QWaPbzwhTQo373TDxrcF6cdxT=g=9T+LMtd48xgajWA@mail.gmail.com>
To: Domenic Denicola <domenic@domenicdenicola.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, Anne van Kesteren <annevk@annevk.nl>, public-script-coord <public-script-coord@w3.org>, Joshua Bell <jsbell@chromium.org>, Jungkee Song <jungkee.song@samsung.com>, Yehuda Katz <wycats@gmail.com>, Alex Russell <slightlyoff@google.com>, Jonas Sicking <jonas@sicking.cc>, Tobie Langel <tobie.langel@gmail.com>, WebApps WG <public-webapps@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:24 UTC