Skip to content

Enable setting HTTP options #41

@bradlo

Description

@bradlo
  • Headers, including User-Agent override.
  • Timeout
  • Transport (DefaultTransport)
    • DialContext.Timeout
    • DialContext.KeepAlive
    • ForceAttemptHTTP2
    • IdleConnTimeout
    • TLSHandshakeTimeout
    • ExpectContinueTimeout (relevant?)
  • TLSClientConfig
    • InsecureSkipVerify

todo: unclear if any of these are relevant given the request/response interface of the CLI. perhaps in interactive mode?

  • MaxIdleConns
  • MaxIdleConnsPerHost
  • MaxConnsPerHost
  • IdleConnTimeout

todo:

  • CheckRedirect -- does it make sense to use the default policy which stops after 10 consecutive requests? do we ever experience redirects to the REST API?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions