Skip to content

advised to add a feature #20

Closed
Closed

Description

@Nyx2022

in python,we can set host in headers to the value that different from the real host of http url,however,by my test,retryablehttp-go may not support this feature,so i advise retryablehttp-go to support this feature

Activity

  1. Mzack9999 commented on Aug 3, 2022

    @Mzack9999
    Member

    @Nyx2022 This is already supported. You can do it either by setting request.Host="whatever" or by setting the header directly:

    req, _ := retryablehttp.NewRequest(http.MethodGet,"http://host",nil)
    req.Host = "whatever"
    req.Header.Set("Host", "whatever")
  2. locked and limited conversation to collaborators on Aug 3, 2022
  3. converted this issue into a discussion #24 on Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions