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

how to add "headers" on HTTPTransport #298

Open
frozt86 opened this issue Sep 19, 2021 · 2 comments
Open

how to add "headers" on HTTPTransport #298

frozt86 opened this issue Sep 19, 2021 · 2 comments

Comments

@frozt86
Copy link

frozt86 commented Sep 19, 2021

hello

so i really appreciate with your works here that i'm using it right now.
but i have difficulties with documentation and typescript.

i want to add some http headers into HTTPTransport. can you help me with this Record<string, string> means in Javascript?

i wish that this project will have more explained documentation with it.

great job, and have a nice day!

thank you.

@gallofeliz
Copy link

After fast reading fetch doc and typescript doc, I suggest

{
    'Header-Name': 'header value',
    // for example :
    'Content-Type': 'plain/text'
}

Regards

@bradjones1
Copy link

Yes it is a simple object of keys and values.

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

No branches or pull requests

3 participants