Comments (3)
Thanks for raising this. Yes this is a problem with operator order. I think "resource"
is parsed a full URI, but need to investigate further. (see #46 which also mentions this bug). I want to improve the DSL to fix this, but you are right, we should document this until then. Added to README.md
from scala-uri.
I see, indeed #46 is quite close to what is happening here.
from scala-uri.
This has now been properly fixed in 0.4.10-SNAPSHOT
:
"http://host" / "path" / "to" / "resource" ? ("a" -> "1" ) & ("b" -> "2")
res0: com.netaporter.uri.Uri = http://host/path/to/resource?a=1&b=2
from scala-uri.
Related Issues (20)
- Trailing slashes are not normalized HOT 3
- Empty Params are not accepted in MatrixParam HOT 1
- Valid characters '+', '-' and '.' in scheme not allowed
- Encoding seems broken HOT 1
- Domain names are preprended with '/' HOT 1
- Support for tld HOT 8
- incorrect publicSuffix matching HOT 5
- Having / and ? next to each other isn't possible HOT 2
- Feature request: Query string parsing HOT 1
- A URISyntaxException is thrown parsing the following url: https://krownlab.com/products/hardware-systems/baldur/#baldur-top-mount#1 HOT 5
- URIs the do not have '//' after 'scheme:' HOT 1
- DSL for v1 HOT 3
- Passing a [/ returns a valid URI? HOT 1
- Try(Uri.parse("%error")) still writes a traceback to stdout/stderr HOT 2
- toURI for local file HOT 2
- Support Scala 2.12 HOT 7
- Runtime exception on matrixParams HOT 1
- Spaces encoded as '+' characters don't decode HOT 2
- Equals-signs in URI fragment are unnecessarily escaped HOT 1
- Characters after '#' is encoded even if part of valid URL HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scala-uri.