Support passing of headers to all Engine API calls (#11330)

* Support passing of headers to all Engine API calls

* Update execution headers example

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
This commit is contained in:
Shem Leong
2022-08-30 07:34:29 +08:00
committed by GitHub
parent cff3b99918
commit 97dc86e742
7 changed files with 30 additions and 0 deletions

View File

@@ -32,6 +32,12 @@ var (
Usage: "An execution client http endpoint. Can contain auth header as well in the format",
Value: "http://localhost:8551",
}
// ExecutionEngineHeaders defines a list of HTTP headers to send with all execution client requests.
ExecutionEngineHeaders = &cli.StringFlag{
Name: "execution-headers",
Usage: "A comma separated list of key value pairs to pass as HTTP headers for all execution " +
"client calls. Example: --execution-headers=key1=value1,key2=value2",
}
// Deprecated: HTTPWeb3ProviderFlag is a deprecated flag and is an alias for the ExecutionEngineEndpoint flag.
HTTPWeb3ProviderFlag = &cli.StringFlag{
Name: "http-web3provider",