Skip to content

Commit 431288b

Browse files
committed
Working on API doc
1 parent 3f5546c commit 431288b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

API.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# SimpleHTTP Full API Reference
2+
3+
## Request
4+
5+
Class to build an HTTP request.
6+
7+
### Public Methods
8+
9+
#### Request(string url)
10+
11+
Creates a new `Request` object. Receives a URL as param.
12+
13+
#### Request Url(string url)
14+
15+
Sets the URL of the `Request` object. Returns the updated `Request`, so this method is chainable.
16+
17+
#### Request Method(string url)
18+
19+
Sets the URL of the `Request` object. Returns the updated `Request`, so this method is chainable.
20+
21+
#### Request AddHeader(string name, string value)
22+
23+
#### Request RemoveHeader(string name)
24+
25+
#### Request Timeout(int timeout)
26+
27+
#### Request Get()
28+
29+
#### Request Post(RequestBody body)
30+
31+
####

0 commit comments

Comments
 (0)