Skip to content
#

url

Here are 1,247 public repositories matching this topic...

Noitidart
Noitidart commented Oct 19, 2019

Coming from qs we would control how arrays in query parameters would be with the arrayFormat option (quote from qs docs below):

You may use the arrayFormat option to specify the format of the output array:

qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' })
// 'a[0]=b&a[1]=c'
qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' })
// 'a[]=b&a[
martinklepsch
martinklepsch commented Jan 3, 2018

Currently most of the examples in the README expect something after the /. Given that matching the "empty path" is a very common scenario users will want to accomplish it could be documented more prominently. I don't have more than anecdotal data on this but I'd expect that it is also often a source of confusion.

(def my-routes ["/" {"" :index ; I'm not even sure if this is correc
alercah
alercah commented Apr 24, 2020

As an occasional standards-user, the lack of a succinct expression of the grammar for valid URL strings is rather frustrating. It makes it rather difficult to follow what's going on and, in particular, to work out whether a given thing is a valid URL. A grammar in EBNF or a similar form would be greatly appreciated and make this spec significantly easier to understand.

Improve this page

Add a description, image, and links to the url topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the url topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.