SetBodyJsonString set the request Body as string and set Content-Type header as "application/json; charset=utf-8"
(body string)
| 914 | // SetBodyJsonString set the request Body as string and set Content-Type header |
| 915 | // as "application/json; charset=utf-8" |
| 916 | func (r *Request) SetBodyJsonString(body string) *Request { |
| 917 | return r.SetBodyJsonBytes([]byte(body)) |
| 918 | } |
| 919 | |
| 920 | // SetBodyJsonBytes set the request Body as []byte and set Content-Type header |
| 921 | // as "application/json; charset=utf-8" |