client-js
client-js copied to clipboard
how to add "headers" on HTTPTransport
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.
After fast reading fetch doc and typescript doc, I suggest
{
'Header-Name': 'header value',
// for example :
'Content-Type': 'plain/text'
}
Regards
Yes it is a simple object of keys and values.