HTTP Headers

Get

Get a single header of the service:
crudService.getHeader(name : string) : string
Get the headers instance of the service:
crudService.getHeaders() : HttpHeaders
Get values for a single header of the service:
crudService.getHeaderArray(name : string) : string[]

Set

Set a single header of the service:
crudService.setHeader(name : string, value : string) : this
Set the headers instance of the service:
crudService.setHeaders(headers : HttpHeaders) : this
Set values for a single header of the service:
crudService.setHeaderArray(name : string, valueArray : string[]) : this

Append

Append a single header to the service:
crudService.appendHeader(name : string, value : string) : this
Append values to a single header of the service:
crudService.appendHeaderArray(name : string, valueArray : string[]) : this

Clear

Clear a single header of the service:
crudService.clearHeader(name : string) : this
Clear the headers instance of the service:
crudService.clearHeaders() : this
Copy link
On this page
Get
Set
Append
Clear