Instance
- instance is very handy feature for adding predefined properties in
http-prorequest.
- Here in
getrequest will have bothx-firstnameandx-lastnameheader.
Extend Instance
hp.extend()is useful for creating extened version forhttp-proinstance. it will have all the properties of current instance.
- Here in
getrequest will have bothx-firstnameandx-lastnameheader andbaseUrlwill behttps://jsonplaceholder.typicode.com