MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / method

Function method

06.Router/basic/js/vue-resource.js:892–900  ·  view source on GitHub ↗

* HTTP method override Interceptor.

(request, next)

Source from the content-addressed store, hash-verified

890 */
891
892 function method (request, next) {
893
894 if (request.emulateHTTP && /^(PUT|PATCH|DELETE)$/i.test(request.method)) {
895 request.headers['X-HTTP-Method-Override'] = request.method;
896 request.method = 'POST';
897 }
898
899 next();
900 }
901
902 function header (request, next) {
903

Callers 8

singleBeforeFunction · 0.70
multiBeforeFunction · 0.70
singleBeforeFunction · 0.50
multiBeforeFunction · 0.50
singleBeforeFunction · 0.50
multiBeforeFunction · 0.50
singleBeforeFunction · 0.50
multiBeforeFunction · 0.50

Calls 1

nextFunction · 0.70

Tested by

no test coverage detected