This PR is more an interest check than anything else - I've found myself needing to build URLs where some of the query parameters may or may not be added to the final URL, depending on the values. For example, an api with these routes:
GET /products?search=hat
GET /products
Means we could have a case where we pass the search value as a Maybe String and use the Url.Builder.maybe like so:
This PR is more an interest check than anything else - I've found myself needing to build URLs where some of the query parameters may or may not be added to the final URL, depending on the values. For example, an api with these routes:
GET
/products?search=hat
GET/products
Means we could have a case where we pass the search value as a
Maybe String
and use theUrl.Builder.maybe
like so: