Home > @gglib/utils > HttpOptions

HttpOptions interface

Options for httpRequest()

Signature:

export interface HttpOptions 

Properties

Property Type Description
async? boolean (Optional) Indicates whether or not to perform the operation asynchronously
data? any (Optional) Query parameters or POST Data object to send
headers? { [key: string]: string; } (Optional) Headers to be added to the request
password? string (Optional) The password to use for authentication purposes
type? string (Optional) The HTTP Method
url string The target URL
username? string (Optional) The user name to use for authentication purposes
xhr? XMLHttpRequest (Optional) Instance of an XMLHttpRequest to be used