165 | 165 |
```go
|
166 | 166 |
f, _ := filepath.Abs("./file2.txt")
|
167 | 167 |
bytesOfFile, _ := ioutil.ReadFile(f)
|
168 | |
|
|
168 |
|
169 | 169 |
gorequest.New().Post("http://example.com/").
|
170 | 170 |
Type("multipart").
|
171 | 171 |
SendFile("./file1.txt").
|
|
234 | 234 |
resp, _, errs := gorequest.New().Get("http://example.com/").EndStruct(&heyYou)
|
235 | 235 |
```
|
236 | 236 |
|
237 | |
## Retry
|
|
237 |
## Retry
|
238 | 238 |
|
239 | 239 |
Supposing you need retry 3 times, with 5 seconds between each attempt when gets a BadRequest or a InternalServerError
|
240 | 240 |
|
|
287 | 287 |
|
288 | 288 |
| Contributors |
|
289 | 289 |
|---------------------------------------|
|
|
290 |
| https://github.com/alaingilbert |
|
|
291 |
| https://github.com/austinov |
|
|
292 |
| https://github.com/coderhaoxin |
|
|
293 |
| https://github.com/codegoalie |
|
|
294 |
| https://github.com/dafang |
|
|
295 |
| https://github.com/davyzhang |
|
|
296 |
| https://github.com/dickeyxxx |
|
|
297 |
| https://github.com/figlief |
|
|
298 |
| https://github.com/fraenky8 |
|
|
299 |
| https://github.com/franciscocpg |
|
|
300 |
| https://github.com/heytitle |
|
|
301 |
| https://github.com/hownowstephen |
|
290 | 302 |
| https://github.com/kemadz |
|
291 | |
| https://github.com/austinov |
|
292 | |
| https://github.com/figlief |
|
293 | |
| https://github.com/dickeyxxx |
|
294 | 303 |
| https://github.com/killix |
|
295 | 304 |
| https://github.com/jaytaylor |
|
296 | 305 |
| https://github.com/na-ga |
|
297 | |
| https://github.com/dafang |
|
298 | |
| https://github.com/alaingilbert |
|
299 | |
| https://github.com/6david9 |
|
|
306 |
| https://github.com/piotrmiskiewicz |
|
300 | 307 |
| https://github.com/pencil001 |
|
|
308 |
| https://github.com/pkopac |
|
|
309 |
| https://github.com/quangbuule |
|
301 | 310 |
| https://github.com/QuentinPerez |
|
302 | 311 |
| https://github.com/smallnest |
|
303 | |
| https://github.com/piotrmiskiewicz |
|
304 | |
| https://github.com/coderhaoxin |
|
305 | 312 |
| https://github.com/WaveCutz |
|
306 | |
| https://github.com/fraenky8 |
|
307 | |
| https://github.com/franciscocpg |
|
308 | |
| https://github.com/quangbuule |
|
|
313 |
| https://github.com/xild |
|
|
314 |
| https://github.com/yangmls |
|
|
315 |
| https://github.com/6david9 |
|
309 | 316 |
|
310 | 317 |
|
311 | 318 |
Also, co-maintainer is needed here. If anyone is interested, please email me (parnurzeal at gmail.com)
|