in src/main/java/com/microsoft/azure/proton/transport/proxy/impl/ProxyImpl.java [428:440]
public ByteBuffer head() {
if (getIsHandshakeInProgress()) {
switch (proxyState) {
case PN_PROXY_CONNECTING:
case PN_PROXY_CHALLENGE_RESPONDED:
return head;
default:
return underlyingOutput.head();
}
} else {
return underlyingOutput.head();
}
}