Closed jhamon closed 11 months ago
To support API development and testing, we would like a way to pass additional headers with every request.
Add a new additional_headers config option and wire up the api client internals to use them.
additional_headers
Usage:
from pinecone import Pinecone p = Pinecone(api_key='asdf', additional_headers={'X-SECRET-EXTRAS': 'secret secret'})
Added a unit test and also verified manually running with PINECONE_DEBUG_CURL=true
PINECONE_DEBUG_CURL=true
Problem
To support API development and testing, we would like a way to pass additional headers with every request.
Solution
Add a new
additional_headers
config option and wire up the api client internals to use them.Usage:
Type of Change
Test Plan
Added a unit test and also verified manually running with
PINECONE_DEBUG_CURL=true