forked from mattn/webapi-vim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebapi-http.txt
More file actions
53 lines (40 loc) · 1.59 KB
/
webapi-http.txt
File metadata and controls
53 lines (40 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
*webapi-http.txt* simple HTTP client library.
Maintainer: mattn <[email protected]>
==============================================================================
CONTENTS *webapi-http-contents*
INTRODUCTION |webapi-http-introduction|
INTERFACE |webapi-http-interface|
Functions |webapi-http-functions|
Response |webapi-http-response|
==============================================================================
INTRODUCTION *webapi-http-introduction*
*webapi-http* is HTTP Utilities Library. It provides simple HTTP client.
==============================================================================
INTERFACE *webapi-http-interface*
------------------------------------------------------------------------------
FUNCTIONS *webapi-http-functions*
get(url, param, header) *webapi-http.get()*
Send GET request to url.
post(url, param, header) *webapi-http.post()*
Send POST request to url.
encodeURI(param) *webapi-http.encodeURI()*
Encode params as URI query.
decodeURI(str) *webapi-http.decodeURI()*
Decode string as URI params.
encodeURIComponent(str) *webapi-http.encodeURIComponent()*
Encode param as URI components.
------------------------------------------------------------------------------
RESPONSE *webapi-http-response*
|webapi-http.get| and |webapi-http.post| return data structure as
|Directory| like following.
>
{
"header": [
"Content-Type: text/html",
"Content-Length: 310"
],
"content": "<html> ....."
}
<
==============================================================================
vim:tw=78:fo=tcq2mM:ts=8:ft=help:norl