OpenFeign / OpenFeign/feign

Hostname in RequestLine?

Open
#1,489 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
9.8k
Forks
1.9k
Avg merge
1d 2h
Merged PRs (30d)
41

Description

Hi,
Is it valid to put the hostname into the RequestLine annotation like this?
@RequestLine("POST https://{site}.service.com/service/rest/auth")
and if so, how should I set target?

I haven't tried yet because I'm aware that there could be some subtlties about re-use of connections if it's not supported even if it appeared to work.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the RequestLine annotation and target configuration documentation or implementation. Determine whether a templated hostname is supported and how target selection and connection reuse are defined. Done means providing a clear supported configuration or documenting the limitation and expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.