<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.devartsoftware.com/index.php?action=history&amp;feed=atom&amp;title=DevArt_EichJS_HTTP_Request</id>
	<title>DevArt EichJS HTTP Request - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.devartsoftware.com/index.php?action=history&amp;feed=atom&amp;title=DevArt_EichJS_HTTP_Request"/>
	<link rel="alternate" type="text/html" href="https://kb.devartsoftware.com/index.php?title=DevArt_EichJS_HTTP_Request&amp;action=history"/>
	<updated>2026-12-06T16:21:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://kb.devartsoftware.com/index.php?title=DevArt_EichJS_HTTP_Request&amp;diff=14&amp;oldid=prev</id>
		<title>Daadmin: Created page with &quot;HTTP Request is a comprehensive library that allows you to communicate with web services effectively using Vanilla JavaScript.  == Info == * Developer: [https://www.devartsoftware.com DevArt Software Co.] * Contributors: Pathum Bandara Premaratne * Latest Version: v1.2 @2021-08-21 * URL: https://js.devartsoftware.com/devart/httprequest/v1.2/devart.httprequest.min.js  == Classes ==  === HttpHeader === HTTP Header Class - Use to send request headers to web services.  ====...&quot;</title>
		<link rel="alternate" type="text/html" href="https://kb.devartsoftware.com/index.php?title=DevArt_EichJS_HTTP_Request&amp;diff=14&amp;oldid=prev"/>
		<updated>2025-09-19T06:19:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;HTTP Request is a comprehensive library that allows you to communicate with web services effectively using Vanilla JavaScript.  == Info == * Developer: [https://www.devartsoftware.com DevArt Software Co.] * Contributors: Pathum Bandara Premaratne * Latest Version: v1.2 @2021-08-21 * URL: https://js.devartsoftware.com/devart/httprequest/v1.2/devart.httprequest.min.js  == Classes ==  === HttpHeader === HTTP Header Class - Use to send request headers to web services.  ====...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;HTTP Request is a comprehensive library that allows you to communicate with web services effectively using Vanilla JavaScript.&lt;br /&gt;
&lt;br /&gt;
== Info ==&lt;br /&gt;
* Developer: [https://www.devartsoftware.com DevArt Software Co.]&lt;br /&gt;
* Contributors: Pathum Bandara Premaratne&lt;br /&gt;
* Latest Version: v1.2 @2021-08-21&lt;br /&gt;
* URL: https://js.devartsoftware.com/devart/httprequest/v1.2/devart.httprequest.min.js&lt;br /&gt;
&lt;br /&gt;
== Classes ==&lt;br /&gt;
&lt;br /&gt;
=== HttpHeader ===&lt;br /&gt;
HTTP Header Class - Use to send request headers to web services.&lt;br /&gt;
&lt;br /&gt;
==== Constructor ====&lt;br /&gt;
 @params&lt;br /&gt;
 {String} Name&lt;br /&gt;
 {String} Value&lt;br /&gt;
&lt;br /&gt;
=== HttpRequest ===&lt;br /&gt;
HTTP Request Class - Use to send requests to web services.&lt;br /&gt;
&lt;br /&gt;
==== Constructor ====&lt;br /&gt;
 @params&lt;br /&gt;
 {String} ServiceURL - Base URL of the calling API.&lt;br /&gt;
 {HttpHeader[]} Headers - Collection of headers to be sent with the request. &lt;br /&gt;
 {Function} GlobalFail - Function that executes when an exception is not handled.&lt;br /&gt;
 {Boolean} Silent - Enables/disables the loader.&lt;br /&gt;
 {Function} ShowLoaderMethod - Method that shows the loader.&lt;br /&gt;
 {Function} HideLoaderMethod - Method that closes the loader.&lt;br /&gt;
&lt;br /&gt;
==== Methods ====&lt;br /&gt;
&lt;br /&gt;
===== Get =====&lt;br /&gt;
Send requests using the HTTP GET method.&lt;br /&gt;
 @param&lt;br /&gt;
 {String} Operation - service name &amp;amp; query string&lt;br /&gt;
 {Object} Data - Payload&lt;br /&gt;
 {Function} SuccessMethod - Method to be executed when the request is completed successfully.&lt;br /&gt;
 {Function} FailMethod - Method to be executed when an error occurred.&lt;br /&gt;
&lt;br /&gt;
===== Post =====&lt;br /&gt;
Send requests using the HTTP POST method.&lt;br /&gt;
 @param&lt;br /&gt;
 {String} Operation - service name &amp;amp; query string&lt;br /&gt;
 {Object} Data - Payload&lt;br /&gt;
 {Function} SuccessMethod - Method to be executed when the request is completed successfully.&lt;br /&gt;
 {Function} FailMethod - Method to be executed when an error occurred.&lt;br /&gt;
&lt;br /&gt;
===== Put =====&lt;br /&gt;
Send requests using the HTTP PUT method.&lt;br /&gt;
 @param&lt;br /&gt;
 {String} Operation - service name &amp;amp; query string&lt;br /&gt;
 {Object} Data - Payload&lt;br /&gt;
 {Function} SuccessMethod - Method to be executed when the request is completed successfully.&lt;br /&gt;
 {Function} FailMethod - Method to be executed when an error occurred.&lt;br /&gt;
&lt;br /&gt;
===== Delete =====&lt;br /&gt;
Send requests using the HTTP DELETE method.&lt;br /&gt;
 @param&lt;br /&gt;
 {String} Operation - service name &amp;amp; query string&lt;br /&gt;
 {Object} Data - Payload&lt;br /&gt;
 {Function} SuccessMethod - Method to be executed when the request is completed successfully.&lt;br /&gt;
 {Function} FailMethod - Method to be executed when an error occurred.&lt;br /&gt;
&lt;br /&gt;
===== Upload=====&lt;br /&gt;
Upload files and data using the HTTP POST method.&lt;br /&gt;
 @param&lt;br /&gt;
 {String} Operation - service name &amp;amp; query string&lt;br /&gt;
 {Object[]} Data - Payload objects&lt;br /&gt;
 {Input[type=file]} - File upload control&lt;br /&gt;
 {Function} SuccessMethod - Method to be executed when the request is completed successfully.&lt;br /&gt;
 {Function} FailMethod - Method to be executed when an error occurred.&lt;br /&gt;
&lt;br /&gt;
===== Download =====&lt;br /&gt;
Downloads files from web resources.&lt;br /&gt;
 @param&lt;br /&gt;
 {String} Operation - service name.&lt;br /&gt;
 {String} Parameter - query string parameters.&lt;br /&gt;
&lt;br /&gt;
== Samples ==&lt;br /&gt;
 //Init Global Error Method&lt;br /&gt;
 let HandleError = function(Error) { alert(Error); };&lt;br /&gt;
 &lt;br /&gt;
 //Instantiate Headers&lt;br /&gt;
 let _Headers = [new HttpHeader(&amp;quot;Header1&amp;quot;, &amp;quot;Value1&amp;quot;), new HttpHeader(&amp;quot;Header2&amp;quot;, &amp;quot;Value2&amp;quot;)];&lt;br /&gt;
  &lt;br /&gt;
 //Instantiate Request&lt;br /&gt;
 let _Request = new HttpRequest(&amp;quot;https://api.sample.com&amp;quot;, _Headers, HandleError, true, ShowLoader, HideLoader);&lt;br /&gt;
 &lt;br /&gt;
 //Get&lt;br /&gt;
 Request.Get(&amp;quot;Service1&amp;quot;, undefined, HanldeSuccessGet, HandleError);&lt;br /&gt;
 &lt;br /&gt;
 //Post&lt;br /&gt;
 Request.Post(&amp;quot;Service&amp;quot;, { Id : 1, Name : &amp;#039;DevArt&amp;#039; }, HanldeSuccessPost, HandleError);&lt;br /&gt;
 &lt;br /&gt;
 //Put&lt;br /&gt;
 Request.Put(&amp;quot;Service/1&amp;quot;, { Id : 1, Name : &amp;#039;DevArt&amp;#039; }, HanldeSuccessPut, HandleError);&lt;br /&gt;
 &lt;br /&gt;
 //Delete&lt;br /&gt;
 Request.Delete(&amp;quot;Service1&amp;quot;, undefined, HanldeSuccessGet, HandleError);&lt;/div&gt;</summary>
		<author><name>Daadmin</name></author>
	</entry>
</feed>