W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2014

Re: [whatwg] Fetch: asFormData()

From: Jake Archibald <jaffathecake@gmail.com>
Date: Wed, 25 Jun 2014 07:51:13 -0700
Message-ID: <CAJ5xic90u3Z_SWDiJnRMRWRMhgdP5xJf3oS4O8-h=HXoKg0XNA@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: WHATWG <whatwg@whatwg.org>
On 25 June 2014 04:50, Anne van Kesteren <annevk@annevk.nl> wrote:

> Do we want to keep that tradition and have both asFormData() and
> asURLSearchParams() or should we embed some smarts in the asFormData()
> algorithm? (FormData is basically a more general URLSearchParams as it
> can handle Blob/File objects as well as strings.)
>

A single asFormData() sounds useful and intuitive. Are you suggesting it'd
always return a FormData object even if it was urlencoded? That sounds
better than returning objects of different types.
Received on Wednesday, 25 June 2014 14:51:44 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:21 UTC