Accept URIs without `none+` and return URIs without `none+`
See original GitHub issueI see usability issues with none+ prefix in URI scheme:
- A user must specify a URL that starts with
none+to create anHttpClientwith aClientBuilder.- We could assume
none+exists when a user did not prepend it. - It becomes a little bit more ambiguous, I think it will not be that confusing. It’s like removing 0 from 0.1 (= .1).
- We could assume
HttpClient.uri()returns a URI that starts withnone+, which is somewhat confusing. For example, a user cannot convert the returned URI into a URL:HttpClient client = ...; client.uri().toURL(); // Fail
I’d like to:
- Make the
none+prefix optional when creating a client. - Make
ClientBuildParams.uri()return a URI without thenone+prefix.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
How to filter non-resolvable URIs on a SPARQL query?
I would like to know if there is some specific FILTER that can be added in the SPARQL query to remove those results...
Read more >Handling of non-file URI - Mathematica Stack Exchange
I can reproduce the problem both on OS X and one Windows, but only with URIs of the form foo:something . URIs of...
Read more >Hypertext Style: Cool URIs don't change. - W3C
There are no reasons at all in theory for people to change URIs (or stop ... Except insolvency, nothing prevents the domain name...
Read more >URI (Java Platform SE 7 ) - Oracle Help Center
An absolute URI specifies a scheme; a URI that is not absolute is said to be relative. URIs are also classified according to...
Read more >Image URIs — sagemaker 2.121.1 documentation
sagemaker.image_uris. retrieve (framework, region, version=None, ... Ideally this function should not be called directly, rather it should be called from ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I guess that seems like overkill - it seems fine to me then for
uri()to return a+or not based on serialization format as proposed.@rmohta Thanks for your interest.
IIRC, We have decided to apply only for
none.That’s right! It looks great.
By the way, our HTTP client doesn’t accept URL. https://github.com/line/armeria/blob/master/core/src/main/java/com/linecorp/armeria/client/HttpClient.java#L229
If we choose this policy, I guess creating an HTTP client from URL would be more natural.
@trustin @minwoox WDYT?