a module containing helper const and functions to generate HTTP headers that can then be appended to your header object using:

const headers = {
...HttpHeaders.Authorization.basic('myUsername', 'myPassword'),
...HttpHeaders.ContentType.get(HttpHeaders.MimeType.applicationJson)
...HttpHeaders.Cookies.setCookie({
key: 'foo',
val: 'bar',
expiration: new Date().toString('u'),
secure: true,
httpOnly: true
})
};

Index

Namespaces

Generated using TypeDoc