org.smartboot.http.client.decode.HeaderDecoder Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2017-2021, org.smartboot. All rights reserved.
* project name: smart-http
* file name: HeaderDecoder.java
* Date: 2021-07-15
* Author: sandao ([email protected])
******************************************************************************/
package org.smartboot.http.client.decode;
import org.smartboot.http.client.AbstractResponse;
import org.smartboot.socket.transport.AioSession;
import java.nio.ByteBuffer;
/**
* Http Header解码器
*
* @author 三刀
* @version V1.0 , 2020/3/30
*/
public interface HeaderDecoder {
HeaderDecoder BODY_READY_DECODER = (byteBuffer, aioSession, response) -> null;
HeaderDecoder BODY_CONTINUE_DECODER = (byteBuffer, aioSession, response) -> null;
HeaderDecoder decode(ByteBuffer byteBuffer, AioSession aioSession, AbstractResponse response);
}