headers

sets the HTTP request header(s)

ajax headers(object values);
valuesobjectthe name-value pairs of header fields
ajaxthe ajax object

Example

webix.ajax().headers({
    'Accept-Encoding': 'gzip', 
    'Accept-Language': 'en-US'
});

Details

The default header definition is { 'Content-type': 'application/x-www-form-urlencoded' }.

See also
Back to top