Interface HttpDeframerHandler<T>
- Type Parameters:
T
- the result type of being deframed
@UnstableApi public interface HttpDeframerHandler<T>
An
HttpDeframerHandler
that decodes a stream of HttpObject
s to N objects.-
Method Summary
Modifier and Type Method Description void
process(HttpDeframerInput in, HttpDeframerOutput<T> out)
Decodes a stream ofHttpData
s to N objects.default void
processHeaders(HttpHeaders in, HttpDeframerOutput<T> out)
Decodes a non-informationalHttpHeaders
to N objects.default void
processInformationalHeaders(ResponseHeaders in, HttpDeframerOutput<T> out)
Decodes an informationalResponseHeaders
to N objects.default void
processOnError(Throwable cause)
Invoked when aThrowable
is raised while deframing.default void
processTrailers(HttpHeaders in, HttpDeframerOutput<T> out)
Decodes atrailers
to N objects.
-
Method Details
-
process
Decodes a stream ofHttpData
s to N objects. This method will be called whenever anHttpData
is signaled fromPublisher
.- Throws:
Exception
-
processInformationalHeaders
default void processInformationalHeaders(ResponseHeaders in, HttpDeframerOutput<T> out) throws ExceptionDecodes an informationalResponseHeaders
to N objects.- Throws:
Exception
-
processHeaders
Decodes a non-informationalHttpHeaders
to N objects.- Throws:
Exception
-
processTrailers
Decodes atrailers
to N objects.- Throws:
Exception
-
processOnError
Invoked when aThrowable
is raised while deframing.
-