Feature Request. Add absolute url request
See original GitHub issueFeature Request
@Url
annotation hidden combining with baseUrl
is a non-intuitive way.
For instance it doesn’t allow request for dynamic urls - if there is no scheme provided, it adds baseUrl
which breaks request.
Also for purposes of combining baseUrl
with multiple paths - there are already paths in @Get
, @Post
annotations and @Path
param.
Suggestions:
- Add new annotation
@RelativeUrl
and move there current@Url
combining logic- Or even multiple annotations for each kind of combining (host relative, scheme relative, etc)
- Make
@Url
always work as absolute url.
Or kind of workaround:
- Add new annotation
@AbsoluteUrl
that will always work as absolute url.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How can I get the full/absolute URL (with domain) in Django?
Use handy request.build_absolute_uri() method on request, pass it the relative url and it'll give you full one. By default, the absolute URL for ......
Read more >How Absolute URLs vs Relative URLs work - Knowledge Center
How Absolute URLs and Relative URLs work. An absolute URL contains all the information necessary to locate a resource. In context to the...
Read more >Use absolute URL in XHR feature tests · Issue #320 · dojo/core
Bug / Enhancement Any dojo/has test operating on an XMLHttpRequest instance that might be run from within a Web Worker generated from a...
Read more >Absolute URL for Factsheets - LeanIX Community - Zendesk
This feature request has been tested and can be reproduced like so: Construct the URL with a combination of a string and GraphQL...
Read more >Absolute vs Relative URLs: when to use which for SEO?
When should you use an absolute URL, and when a relative URL? ... follow sitemap guidelines which require absolute URLs in the sitemap...
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
Then you should be using OkHttp’s API directly instead of Retrofit. Retrofit is for structured APIs and URLs known at compile-time.
Can you provide a specific example that doesn’t work? Relative resolution, absolute resolution, full URLs all work today.
It’s the same as
<a href="">
and pretty standard faire for resolving one URI against another.