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

cn.ipokerface.weixin.request.http.AbstractHttpResponse Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package cn.ipokerface.weixin.request.http;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

/**
 * Created by       PokerFace
 * Create Date      2019-12-27.
 * Email:           [email protected]
 * Version          1.0.0
 * 

* Description: */ public abstract class AbstractHttpResponse implements HttpResponse { protected final static String KEEP_ALIVE = "keep-alive"; private final byte[] content; public AbstractHttpResponse(byte[] content) { this.content = content; } public byte[] getContent() { return content; } public InputStream getBody() { return content != null ? new ByteArrayInputStream(content) : null; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy