com.tapstream.sdk.http.ByteArrayRequestBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tapstream-core Show documentation
Show all versions of tapstream-core Show documentation
This library contains the building blocks for a Tapstream Java SDK
package com.tapstream.sdk.http;
public class ByteArrayRequestBody implements RequestBody{
private final byte[] body;
public ByteArrayRequestBody() {
this(new byte[0]);
}
public ByteArrayRequestBody(byte[] body){
this.body = body;
}
@Override
public byte[] toBytes() {
return body;
}
@Override
public String contentType() {
return "byte array";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy