Re: [whatwg] Fetch: asFormData()

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