question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request. Add absolute url request

See original GitHub issue

Feature 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
JakeWhartoncommented, Aug 13, 2018

Then you should be using OkHttp’s API directly instead of Retrofit. Retrofit is for structured APIs and URLs known at compile-time.

1reaction
JakeWhartoncommented, Aug 8, 2018

Can you provide a specific example that doesn’t work? Relative resolution, absolute resolution, full URLs all work today.

non-intuitive way

It’s the same as <a href=""> and pretty standard faire for resolving one URI against another.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found