You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+42
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@ Simple HTTP and REST client for Go inspired by Ruby rest-client. Provides notabl
20
20
* Choose between HTTP and RESTful mode. Default is RESTful
21
21
*`HTTP` - default upto 10 redirects and no automatic response unmarshal
22
22
*`RESTful` - default no redirects and automatic response unmarshal for `JSON` & `XML`
23
+
* Custom [Root Certificates](https://godoc.org/github.com/go-resty/resty#Client.SetRootCertificate) and Client [Certificates](https://godoc.org/github.com/go-resty/resty#Client.SetCertificates)
24
+
* Save HTTP response into File, similar to `curl -o` flag. More info [SetOutputDirectory](https://godoc.org/github.com/go-resty/resty#Client.SetOutputDirectory) & [SetOutput](https://godoc.org/github.com/go-resty/resty#Request.SetOutput).
23
25
* Client settings like `Timeout`, `RedirectPolicy`, `Proxy` and `TLSClientConfig`
24
26
* Client API design
25
27
* Have client level settings & options and also override at Request level if you want to
@@ -282,6 +284,25 @@ resp, err := resty.R().
282
284
Post("http://myapp.com/profile")
283
285
```
284
286
287
+
#### Save HTTP Response into File
288
+
```go
289
+
// Setting output directory path, If directory not exists then resty creates one!
290
+
// This is optional one, if you're planning using absoule path in
0 commit comments