Skip to content

Why storing requests in Transport RoundTripper #271

@iyashu

Description

@iyashu

I'm quite new to golang, want to know why this lib stores the modified requests in modReq map and later delete it after finishing the base roundtripper or closing body. Is this because to support CancelRequest for previous golang version? Won't there be little performance issue as the map is protected with mutex? Why not simply add the authorization header to the request.

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