Adding headers
Last updated
Was this helpful?
Last updated
Was this helpful?
Many servers require extra headers for safe operations. For example, they may require a "Content-Type" header to explicitly declare the MIME type of the request body. Or perhaps the server requires an authorization token.
The HeroesService
defines such headers in an httpOptions
object that will be passed to every save method.