Skip to content

Releases: golgote/neturl

v1.1-1

13 Oct 14:07
Compare
Choose a tag to compare

New options to make encoding more flexible (some scheme are different from others in this regard, more or less strict):

  • legal_in_path is a table of characters that will not be url encoded in path components.
  • legal_in_query is a table of characters that will not be url encoded in query values. Query parameters on the other hand only support a small set of legal characters (-_.).
  • query_plus_is_space is true by default, so a plus sign in a query value will be converted to %20 (space), not %2B (plus).

New function addSegment(path) which also works with __div metatable:

u = url.parse('http://example.com') / 'bands' / 'AC/DC'

v1.0-1

10 Oct 14:50
Compare
Choose a tag to compare
  • parameters with same name and no brackets in query string can be stored in a table
  • check hostname
  • check userinfo
  • encode path components (spaces, slashes, etc)