We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43f7526 commit d14a759Copy full SHA for d14a759
1 file changed
doc/vital/Web/AsyncHTTP.txt
@@ -35,6 +35,20 @@ request({url} [, {settings}])
35
request({method}, {url} [, {settings}])
36
Send a request to the server.
37
This function requires one of the clients, "curl" or "wget".
38
+
39
+ Example: >
40
+ let s:AsyncHTTP = vital#{plugin-name}#new().import('Web.AsyncHTTP')
41
42
+ function! s:user_cb(response) abort
43
+ echo a:response
44
+ " => Dictionary in the same format as Web.HTTP
45
+ endfunction
46
47
+ call s:AsyncHTTP.request({
48
+ \ 'url': 'https://example.com',
49
+ \ 'user_cb': function('s:user_cb'),
50
+ \ })
51
+<
52
{settings} is a |Dictionary| which contains the following items:
53
54
"url" Required
0 commit comments