Search in sources :

Example 26 with StreamWriter

use of com.webpieces.http2engine.api.StreamWriter in project webpieces by deanhiller.

the class Level8NotifySvrListeners method sendPieceToApp.

@Override
public CompletableFuture<Void> sendPieceToApp(Stream stream, Http2Trailers payload) {
    ServerStream s = (ServerStream) stream;
    StreamWriter writer = s.getStreamWriter();
    return writer.processPiece(payload).thenApply(w -> null);
}
Also used : StreamWriter(com.webpieces.http2engine.api.StreamWriter)

Aggregations

StreamWriter (com.webpieces.http2engine.api.StreamWriter)26 DataFrame (com.webpieces.http2parser.api.dto.DataFrame)17 Test (org.junit.Test)16 Http2Response (com.webpieces.hpack.api.dto.Http2Response)13 Http2Request (com.webpieces.hpack.api.dto.Http2Request)12 DataWrapper (org.webpieces.data.api.DataWrapper)9 Http2Msg (com.webpieces.http2parser.api.dto.lib.Http2Msg)8 MockResponseListener (org.webpieces.http2client.mock.MockResponseListener)8 MockStreamWriter (org.webpieces.http2client.mock.MockStreamWriter)8 PassedIn (org.webpieces.httpfrontend2.api.mock2.MockHttp2RequestListener.PassedIn)8 ConnectionClosedException (com.webpieces.http2engine.api.ConnectionClosedException)5 GoAwayFrame (com.webpieces.http2parser.api.dto.GoAwayFrame)5 Header (org.webpieces.httpparser.api.common.Header)4 HttpResponse (org.webpieces.httpparser.api.dto.HttpResponse)4 Http2Header (com.webpieces.http2parser.api.dto.lib.Http2Header)3 Http2HeaderName (com.webpieces.http2parser.api.dto.lib.Http2HeaderName)3 CompletableFuture (java.util.concurrent.CompletableFuture)3 ResponseStream (org.webpieces.frontend2.api.ResponseStream)3 MockStreamWriter (org.webpieces.httpfrontend2.api.mock2.MockStreamWriter)3 HttpData (org.webpieces.httpparser.api.dto.HttpData)3