contentType property

ContentType contentType
getter/setter pair

Sets the default content-type of requests made by this agent.

Defaults to 'application/json; charset=utf-8'. A request created by this agent will have its TestRequest.contentType set to this value.

Implementation

ContentType contentType = ContentType.json;