commit | ba7bfd392b2280f9d1d3ed35249a06c15d717895 | [log] [tgz] |
---|---|---|
author | Tres Seaver <tseaver@palladion.com> | Tue May 07 11:32:23 2019 -0400 |
committer | GitHub <noreply@github.com> | Tue May 07 11:32:23 2019 -0400 |
tree | 7de45f8e64457eb845789cb429bb64fca4d5bb4b | |
parent | 1f2b658880f7dfb72b48accfff43d9775328d640 [diff] |
Refactor 'client_info' support. (#7849) * Add 'user_agent' and 'extra_headers' properties to 'Connection'. Deprecate the 'USER_AGENT' and '_EXTRA_HEADERS' class-level attributes. * Add 'client_info' parameter to 'Connection' ctor. * Implement 'Connection.user_agent' via its '_client_info'. * Ensure 'X-Goog-API-Client' header is always passed. * Create/use non-GAPIC-specific 'ClientInfo' class FBO HTTP/JSON clients. Derive the existing GAPIC class from it.