This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
Add Response#headers
to SOLANA_ERROR__RPC__TRANSPORT_HTTP_ERROR
#3563
Labels
enhancement
New feature or request
Motivation
Get an HTTP error? Sometimes the headers have useful information, like your rate limit status. Your program might like access to those headers to decide what to do next.
Thanks to Hex Luther on Stack Exchange for the suggestion.
Example use case
Details
Whatever you do, take care that the values of
Headers
don't get leaked through some logging system. Consider the response headers to be sensitive information.The text was updated successfully, but these errors were encountered: