headers Property

Summary

A dictionary of key-value headers for the XMLHttpRequest.

Syntax
TypeScript
JavaScript
Object.defineProperty(ImageLoaderAjaxOptions.prototype, 'headers', 
	get: function(), 
	set: function(value) 
) 
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 22.0.2023.2.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.