Skip to content

net/http: add customization of proxy CONNECT requests #15027

Closed
@AlmogBaku

Description

@AlmogBaku

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    1.6
  2. What operating system and processor architecture are you using (go env)?
    darwin amd64 [os x]
  3. What did you do?
    I tried to use Proxy with a Bearer authentication method.
  4. What did you expect to see?
    Allow other authentication method than Basic HTTP
  5. What did you see instead?
    Proxy authentication is limited to Basic-HTTP-Authentication only, with user & password:
    https://github.com/golang/go/blob/master/src/net/http/transport.go#L493
  6. Suggestion
    • url.URL should allow custom authentication such as bearer
    • url.URL should provide a method that returns the "authentication header value", and do the base64 etc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions