All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ui.static.xhrLogger.js Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
$(document).ajaxComplete(function (e, xhr, options) {
    let statusCode = xhr.status;
    let endpoint = options.url;
    let serverHostname = xhr.getResponseHeader("Server-Hostname");
    console.log("XHR completed: httpStatus=" + statusCode + " servedBy=" + serverHostname + " endpoint=" + endpoint);
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy