Skip to content

Commit ab31155

Browse files
authored
chore: Add content type enum to request (#754)
* added content type to request
1 parent d95be26 commit ab31155

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/java/com/twilio/http/Request.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.twilio.http;
22

3+
4+
import com.twilio.constant.EnumConstants.ContentType;
35
import com.twilio.exception.ApiException;
46
import com.twilio.exception.InvalidRequestException;
57

@@ -37,6 +39,8 @@ public class Request {
3739

3840
private List<String> userAgentExtensions;
3941

42+
private ContentType contentType;
43+
4044
/**
4145
* Create a new API request.
4246
*
@@ -113,6 +117,14 @@ public List<String> getUserAgentExtensions() {
113117
return this.userAgentExtensions;
114118
}
115119

120+
public ContentType getContentType() {
121+
return contentType;
122+
}
123+
124+
public void setContentType(ContentType contentType) {
125+
this.contentType = contentType;
126+
}
127+
116128
/**
117129
* Create auth string from username and password.
118130
*

0 commit comments

Comments
 (0)