All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cz.jalasoft.net.http.HttpResponse Maven / Gradle / Ivy

The newest version!
/*
 * 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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy