Home » Backbone.js emulateHTTP()

Backbone.js emulateHTTP()

by Online Tutorials Library

Backbone.emulateHTTP()

Backbone.emulateHTTP is used when you want to work with a legacy web server that doesn’t support Backbone’s default REST/HTTP approach. If you set this option to true, it will fake PUT, PATCH and DELETE requests with a HTTP POST, setting the X-HTTP-Method-Override header with the true method.

Syntax:

Let’s take an example.

See this example:

You may also like