cz.jalasoft.net.http.HttpResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of HttpClient Show documentation
Show all versions of HttpClient Show documentation
API for communicating over HTTP.
/*
* Copyright (c) 2015 Avast a.s., www.avast.com
*/
package cz.jalasoft.net.http;
/**
* An abstraction of an HTTP response
*
* @author Jan Lastovicka ([email protected])
* @since 2015-02-21
*/
public interface HttpResponse {
int RESPONSE_CODE_OK = 200;
boolean isStatusOK();
int getStatusCode();
String getReason();
byte[] getContent();
String getContentAsString();
}