Set the IP address of the outgoing test request
Open
- Dominant language
- Go
- Stars
- 446
- Forks
- 40
- Avg merge
- 11h 42m
- Merged PRs (30d)
- 1
Description
Hi, is there any way to set the IP address of the mock request? I have a use case where I need to know the IP address of the incoming request. The library sets the IP address to an empty string. I need to set it to a particular value (could default to 127.0.0.1). Any help would be much appreciated.
Thanks
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the mock request construction and inspect where the request's IP or remote address is assigned. Trace how that request reaches the API handler, then verify that a configured value or the proposed default is visible to the handler in a focused test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100