SetContentType set the `Content-Type` for the request.
(contentType string)
| 961 | |
| 962 | // SetContentType set the `Content-Type` for the request. |
| 963 | func (r *Request) SetContentType(contentType string) *Request { |
| 964 | return r.SetHeader(header.ContentType, contentType) |
| 965 | } |
| 966 | |
| 967 | // Context method returns the Context if its already set in request |
| 968 | // otherwise it creates new one using `context.Background()`. |