Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to provide their own custom HTTP headers #63

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

liamgriffiths
Copy link
Contributor

@liamgriffiths liamgriffiths commented Apr 19, 2024

This one is implemented to be in line with the Python SDK and uses the same parameter name and override behavior.

Example usage:

  const substrate = new Substrate({
    additionalHeaders: {
      "X-Hello": "World",
      "X-Good-Night": "Moon",
    }
  });

@liamgriffiths
Copy link
Contributor Author

cc @vprtwn @kousun12

@liamgriffiths liamgriffiths merged commit e49b08d into main Apr 22, 2024
2 checks passed
@liamgriffiths liamgriffiths deleted the liam/add-extra-headers branch May 2, 2024 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant