diff options
Diffstat (limited to 'vespa-feed-client-api')
-rw-r--r-- | vespa-feed-client-api/src/main/java/ai/vespa/feed/client/HttpResponse.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/HttpResponse.java b/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/HttpResponse.java index 62850fef32d..dece21acd89 100644 --- a/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/HttpResponse.java +++ b/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/HttpResponse.java @@ -6,6 +6,8 @@ public interface HttpResponse { int code(); byte[] body(); + default String contentType() { return "application/json"; } + static HttpResponse of(int code, byte[] body) { return new HttpResponse() { @Override public int code() { return code; } |