# Wijmo.Ihttprequestoptions

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								IHttpRequestOptions Interface
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>Represents a set of options to be used with the <a href="../index.html#httprequest">httpRequest</a> method.</p>
								</div>
							</div>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<span class="target">IHttpRequestOptions</span>
								</li>
							</ul>
						</section>
						<section class="tsd-index-group">
							<section class="tsd-index-panel">
								<div class="tsd-index-content">
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Properties
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo.ihttprequestoptions.html#async" class="tsd-kind-icon">async</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo.ihttprequestoptions.html#beforesend" class="tsd-kind-icon">before<wbr>Send</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo.ihttprequestoptions.html#complete" class="tsd-kind-icon">complete</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo.ihttprequestoptions.html#data" class="tsd-kind-icon">data</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo.ihttprequestoptions.html#error" class="tsd-kind-icon">error</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo.ihttprequestoptions.html#method" class="tsd-kind-icon">method</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo.ihttprequestoptions.html#password" class="tsd-kind-icon">password</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo.ihttprequestoptions.html#requestheaders" class="tsd-kind-icon">request<wbr>Headers</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo.ihttprequestoptions.html#success" class="tsd-kind-icon">success</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo.ihttprequestoptions.html#timeout" class="tsd-kind-icon">timeout</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo.ihttprequestoptions.html#user" class="tsd-kind-icon">user</a></li>
										</ul>
									</section>
								</div>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Properties</h2>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="async" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> async</h3>
								<div class="tsd-signature tsd-kind-icon">async<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>By default, all requests are sent asynchronously (i.e. this is set to true by default).
										If you need to make synchronous requests, set this option to false.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="beforesend" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> beforeSend</h3>
								<div class="tsd-signature tsd-kind-icon">before<wbr>Send<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Object</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Function to be called immediately before the request is sent.
										The function has a single parameter of type <b>XMLHttpRequest</b> that represents the request.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="complete" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> complete</h3>
								<div class="tsd-signature tsd-kind-icon">complete<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Object</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Function to be called when the request finishes (after success and error callbacks are executed).
										The function has a single parameter of type <b>XMLHttpRequest</b> that represents the request.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="data" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> data</h3>
								<div class="tsd-signature tsd-kind-icon">data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Data to be sent to the server. It is appended to the url for GET requests,
										and converted to a JSON string for other requests.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="error" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> error</h3>
								<div class="tsd-signature tsd-kind-icon">error<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Object</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Function to be called if the request fails.
										The function has a single parameter of type <b>XMLHttpRequest</b> that represents the request.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="method" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> method</h3>
								<div class="tsd-signature tsd-kind-icon">method<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>The HTTP method to use for the request (e.g. "POST", "GET", "PUT").
										The default is "GET".</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="password" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> password</h3>
								<div class="tsd-signature tsd-kind-icon">password<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>A password to be used with <b>XMLHttpRequest</b> in response to an HTTP access
										authentication request.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="requestheaders" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> requestHeaders</h3>
								<div class="tsd-signature tsd-kind-icon">request<wbr>Headers<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>A JavaScript object containing key/value pairs to be added to the request headers.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="success" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> success</h3>
								<div class="tsd-signature tsd-kind-icon">success<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Object</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Function to be called if the request succeeds.
										The function has a single parameter of type <b>XMLHttpRequest</b> that represents the request.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="timeout" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> timeout</h3>
								<div class="tsd-signature tsd-kind-icon">timeout<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>The number of milliseconds the request can take before automatically being terminated.
										The default value is 0, which means there is no timeout.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="user" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> user</h3>
								<div class="tsd-signature tsd-kind-icon">user<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>A username to be used with <b>XMLHttpRequest</b> in response to an HTTP access
										authentication request.</p>
									</div>
								</div>
							</section>
						</section>
					</div>