if (method != HttpMethod.GET && method != HttpMethod.DELETE) {
setHeader(conn, "Content-Type", request.getContentType(), true);
}
String requestBodyContents = null;
if (request.isInlined()) {
WebServiceRequestInlined inlinedBody = convertToInlinedBody(request);
requestBodyContents = bodyToJson(inlinedBody);
} else {
addRequestParams(conn, request.getHeaders());
if (method != HttpMethod.GET && method != HttpMethod.DELETE) {
RequestBody requestBody = request.getBody();