cc.kebei.expands.request.http.Response Maven / Gradle / Ivy
package cc.kebei.expands.request.http;
import java.io.IOException;
import java.io.InputStream;
/**
* Created by Kebei on 16-6-24.
*/
public interface Response {
int getCode();
String asString() throws IOException;
byte[] asBytes() throws IOException;
InputStream asStream() throws IOException;
T getNativeResponse();
long contentLength();
String getHeader(String header);
}