headers Property

Summary

A dictionary of key-value headers for the XMLHttpRequest.

Syntax

JavaScript Syntax
Object.defineProperty(ImageLoaderAjaxOptions.prototype, 'headers', 
	get: function(), 
	set: function(value) 
) 
TypeScript Syntax
headers: { [key: string]: string }; 

Property Value

Dictionary of key-value headers for the XMLHttpRequest. Default value is an empty dictionary.

Remarks

If the Method is POST, then the PostData will be sent with the request. So that the endpoint described by Url may understand the data, add the "content-type" header to Headers with the standard name for your data serialization (e.g., "application/json").

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly