Skip to content

Commit e0079c4

Browse files
committed
update todo list
1 parent 3e03d90 commit e0079c4

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ subject to the following conditions:
1111

1212
The above copyright notice and this permission notice shall be included in all
1313
copies or substantial portions of the Software.
14-
14+
1515
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
1717
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR

README.md

+13-16
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@ Net is a HttpRequest wrapper written in Swift
44

55
Features
66
-----
7-
* GET, POST, PUT, DELETE method
8-
* Powerful request params: nested params, number, string, dic, array, image, data
9-
* Json, Image, Xml Response
10-
* Download file: resume, suspend, cancel
11-
* Upload file, data, params(multi-part)
12-
* Progress closure
13-
* Background donwload, upload
14-
* Authentication
15-
* Batch of operations
16-
* BaseURL
17-
* Customizable header
7+
- [x] GET, POST, PUT, DELETE method
8+
- [x] Powerful request params: nested params, number, string, dic, array, image, data
9+
- [x] Json, Image, Xml Response
10+
- [x] Download file: resume, suspend, cancel
11+
- [x] Upload file, data, params(multi-part)
12+
- [x] Progress closure
13+
- [x] Background donwload, upload
14+
- [x] Authentication
15+
- [x] Batch of operations
16+
- [x] BaseURL
17+
- [x] Customizable header
18+
- [ ] Batch of operations
19+
- [ ] Basic authentiacation
1820

1921
Demo app
2022
-----
@@ -245,11 +247,6 @@ yourUploadTask.setHttpMethod(.PUT)
245247
yourUploadTask.setValue(value: "your_value", forHttpHeaderField: "header_field")
246248
```
247249

248-
## In progress
249-
* Batch of operations
250-
* Basic authentiacation
251-
252-
253250
Integration
254251
-----
255252
Just drag Net folder to the project tree

rails_api_example/app/controllers/http_requests_controller.rb

+3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
class HttpRequestsController < ApplicationController
2+
# for json request
23
def get_json
34
data = {name: 'nghialv', github: 'https://github.com/nghialv', parameters: params}
45
render json: data
56
end
67

8+
# post with url parameters
79
def post_url_encoded
810
result = {status: 'ok', parameters: params}
911
render json: result
1012
end
1113

14+
# multi part post
1215
def post_multi_part
1316
result = {status: 'ok'}
1417
render json: result

0 commit comments

Comments
 (0)