1.1.0 • Published 6 years ago

gogetter v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Classes

Functions

GoGetter

The GoGetter class exposes methods for GET, POST, PUT, DELETE

Kind: global class
Hideconstructor:
Since: 1.0.0

new GoGetter(method)

Exposes GoGetter request methods

ParamType
methodstring

GoGetter.get(uri, options) ⇒ Promise

Kind: static method of GoGetter

ParamType
uristring
optionsObject
options.timeoutnumber
options.headersObject

GoGetter.post(uri, body, options) ⇒ Promise

Kind: static method of GoGetter

ParamType
uristring
bodyObject | string
optionsObject
options.timeoutnumber
options.headersObject

GoGetter.put(uri, body, options) ⇒ Promise

Kind: static method of GoGetter

ParamType
uristring
bodyObject | string
optionsObject
options.timeoutnumber
options.headersObject

GoGetter.delete(uri, options) ⇒ Promise

Kind: static method of GoGetter

ParamType
uristring
optionsObject
options.timeoutnumber
options.headersObject

XHR

Generate an XHR of type GET, POST, PUT, DELETE

Kind: global class
Since: 1.0.0

new XHR(method)

Manages XHRs

ParamType
methodstring

xhR.body(message) ⇒ XHR

Update body for request

Kind: instance method of XHR

ParamType
messageObject | string

xhR.uri(url) ⇒ XHR

Update uri for request

Kind: instance method of XHR

ParamType
urlstring

xhR.headers(header) ⇒ XHR

Update headers for request

Kind: instance method of XHR

ParamType
headerObject

xhR.timeout(time) ⇒ XHR

Update timeout for request

Kind: instance method of XHR

ParamType
timenumber

xhR.send() ⇒ Promise

Make XHR request

Kind: instance method of XHR

win() ⇒ Window | Object

Returns window, global, or object if exists (in that order);

Kind: global function
Since: 1.0.0