
org.webpieces.httpparser.api.Memento Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-parser1_1 Show documentation
Show all versions of http-parser1_1 Show documentation
A re-usable asynchronous http 1.1 parser that can be used with any nio client
The newest version!
package org.webpieces.httpparser.api;
import java.util.List;
import org.webpieces.httpparser.api.dto.HttpPayload;
public interface Memento {
ParsedStatus getStatus();
/**
* In the case where you pass in bytes 2 or more messages, we
* give you back all the parsed messages so far
* @return
*/
List getParsedMessages();
/**
* You probably never really need this, but if you need the headers BEFORE the body has finished coming in for
* requests with a Content-Length header, then this will be non-null. You will receive this however with the body
* a second time when you call getParsedMessages
*/
public HttpPayload getHalfParsedMessage();
/**
* For those who would like to throw an exception if the incoming size of all headers is too large, the current
* size can be checked
* @return
*/
UnparsedState getUnParsedState();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy