SetBodyString set the request Body as string.
(body string)
| 908 | |
| 909 | // SetBodyString set the request Body as string. |
| 910 | func (r *Request) SetBodyString(body string) *Request { |
| 911 | return r.SetBodyBytes([]byte(body)) |
| 912 | } |
| 913 | |
| 914 | // SetBodyJsonString set the request Body as string and set Content-Type header |
| 915 | // as "application/json; charset=utf-8" |