Skip to content

Commit ff53399

Browse files
author
lixizan
committed
update docs
1 parent bc9b425 commit ff53399

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

README.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Hasaki
22

3-
Http Request Library for Go
3+
HTTP Request Library for Go
44

55
[![Build Status][1]][2] [![codecov][3]][4]
66

@@ -9,25 +9,23 @@ Http Request Library for Go
99
[3]: https://codecov.io/gh/lxzan/hasaki/graph/badge.svg?token=0VY55RLS3G
1010
[4]: https://codecov.io/gh/lxzan/hasaki
1111

12-
- [Hasaki](#hasaki)
13-
- [Features](#features)
14-
- [Install](#install)
15-
- [Usage](#usage)
16-
- [Get](#get)
17-
- [Post](#post)
18-
- [Stream](#stream)
19-
- [Error Stack](#error-stack)
20-
- [Middleware](#middleware)
21-
- [How to get request latency in simple way](#how-to-get-request-latency-in-simple-way)
12+
- [Hasaki](#hasaki)
13+
- [Features](#features)
14+
- [Install](#install)
15+
- [Usage](#usage)
16+
- [Get](#get)
17+
- [Post](#post)
18+
- [Stream](#stream)
19+
- [Error Stack](#error-stack)
20+
- [Middleware](#middleware)
2221

2322
### Features
2423

2524
- [x] Buffer Pool
2625
- [x] Trace the Error Stack
27-
- [x] Request Encoder Bind: JSON, YAML, Form, Stream
28-
- [x] Response Decoder Bind: JSON, YAML, XML
26+
- [x] Build-In JSON / XML / WWWForm / Protobuf/YAML Codec
2927
- [x] Request Before and After Middleware
30-
- [x] Export CURL Command in Debug Mode
28+
- [x] Export cURL Command in Debug Mode
3129

3230
### Install
3331

@@ -99,7 +97,7 @@ resp := hasaki.
9997
// Send a put request, using a byte stream
10098

10199
var reader io.Reader
102-
encoder := hasaki.NewStreamEncoder(hasaki.MimeSTREAM)
100+
encoder := hasaki.NewStreamEncoder(hasaki.MimeStream)
103101
resp := hasaki.
104102
Put("https://api.example.com/upload").
105103
SetEncoder(encoder).

0 commit comments

Comments
 (0)