/*
 *
 */
package org.redkale.net.http;

import org.redkale.convert.ConvertDisabled;
import org.redkale.convert.json.JsonConvert;
import org.redkale.net.client.ClientResult;

/**
 *
 *
 * <p>
 * 详情见: https://redkale.org
 *
 * @author zhangjx
 *
 * @since 2.8.0
 */
public class HttpSimpleResult<T> extends HttpResult<T> implements ClientResult {

    int readState;

    int contentLength = -1;

    @Override
    @ConvertDisabled
    public boolean isKeepAlive() {
        return true;
    }

    @Override
    public String toString() {
        return JsonConvert.root().convertTo(HttpResult.class, this);
    }
}
