public interface HttpTransport
Modifier and Type | Method and Description |
---|---|
void |
abort(Throwable failure)
Aborts this transport.
|
boolean |
isOptimizedForDirectBuffers()
Is the underlying transport optimized for DirectBuffer usage
|
boolean |
isPushSupported() |
void |
onCompleted() |
void |
push(MetaData.Request request) |
void |
send(MetaData.Response info,
boolean head,
ByteBuffer content,
boolean lastContent,
Callback callback) |
void send(MetaData.Response info, boolean head, ByteBuffer content, boolean lastContent, Callback callback)
boolean isPushSupported()
void push(MetaData.Request request)
void onCompleted()
void abort(Throwable failure)
This method should terminate the transport in a way that can indicate an abnormal response to the client, for example by abruptly close the connection.
This method is called when an error response needs to be sent, but the response is already committed, or when a write failure is detected.
failure
- the failure that caused the abort.boolean isOptimizedForDirectBuffers()
Copyright © 1995-2016 Webtide. All Rights Reserved.