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
JSON sends a JSON request by setting the Content-Type header to `application/json`.
271
+
JSON sends a JSON request by setting the Content-Type header to the `ctype` parameter. If no `ctype` is passed in, the header is set to `application/json`.
272
272
273
273
```go title="Signature"
274
-
func (a *Agent) JSON(v interface{}) *Agent
274
+
func (a *Agent) JSON(v interface{}, ctype ...string) *Agent
0 commit comments