Skip to main content

Patch

1. JSON data

  • If you want to send json data to the server, just add your javascript object in json property of HttpOptions.


note

whenever users sends the json data to the server using json property of HttpOptions, it will set content-type : application/json header if headers object does not have content-type field.


note

Here, res is just a javascript Response object, so you can also access data as shown below.