headers

sets the HTTP request header(s)

ajax headers(object values);

Parameters

valuesobjectthe name-value pairs of header fields

Returns

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