Skip to content

Commit 39b7b6a

Browse files
authored
Merge pull request #92 from SentryMan/patch-1
Add more MediaTypes for byte[] responses;
2 parents b59ac8b + f563e24 commit 39b7b6a

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

http-api/src/main/java/io/avaje/http/api/MediaType.java

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public interface MediaType {
3535
*/
3636
String APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded";
3737

38-
3938
/**
4039
* A {@code String} constant representing {@value #MULTIPART_FORM_DATA} media type.
4140
*/
@@ -51,7 +50,6 @@ public interface MediaType {
5150
*/
5251
String TEXT_PLAIN = "text/plain";
5352

54-
5553
/**
5654
* A {@code String} constant representing {@value #TEXT_XML} media type.
5755
*/
@@ -71,5 +69,35 @@ public interface MediaType {
7169
* {@link String} representation of {@value #APPLICATION_JSON_PATCH_JSON} media type..
7270
*/
7371
String APPLICATION_JSON_PATCH_JSON = "application/json-patch+json";
74-
72+
73+
/**
74+
* {@link String} representation of {@value #APPLICATION_PDF} media type.
75+
*/
76+
String APPLICATION_PDF = "application/pdf";
77+
78+
/**
79+
* {@link String} representation of {@value #IMAGE_GIF} media type.
80+
*/
81+
String IMAGE_GIF = "image/gif";
82+
83+
/**
84+
* {@link String} representation of {@value #IMAGE_JPEG} media type.
85+
*/
86+
String IMAGE_JPEG = "image/jpeg";
87+
88+
/**
89+
* {@link String} representation of {@value #IMAGE_PNG} media type.
90+
*/
91+
String IMAGE_PNG = "image/png";
92+
93+
/**
94+
* {@link String} representation of {@value #MULTIPART_MIXED} media type.
95+
*/
96+
String MULTIPART_MIXED = "multipart/mixed";
97+
98+
/**
99+
* {@link String} representation of {@value #MULTIPART_RELATED} media type.
100+
*/
101+
String MULTIPART_RELATED = "multipart/related";
102+
75103
}

0 commit comments

Comments
 (0)