Guide 1 Docs 2 Reference 3

Function of http

http.get

GET a URL. cache is the seconds a 200 answer is kept on disk; timeout is 1 to 60 seconds, 15 by default.

http.get(url: string, options: {query: {[string]: string}?, headers: {[string]: string}?, timeout: number?, cache: number?}?) → HttpResponse

Parameters

urlstringrequired
options{query: {[string]: string}?, headers: {[string]: string}?, timeout: number?, cache: number?}optional

Returns

HttpResponse

Used in