private boolean requestHeaderFirstByteNotPassed(byte first) {
        switch (first) {
                // GET
            case 'G':
                // HEAD
            case 'H':
                // POST, PUT, PATCH
            case 'P':
                // DELETE
            case 'D':
                // OPTIONS
            case 'O':
                // TRACE
            case 'T':
                // CONNECT
            case 'C':
                return false;
            default:
                // Unknown first byte data.
                NetBareLog.w("Unknown first request header byte : " + first);
                break;
        }
        return true;
    }
Detect the plaintext packet header to determine is it the HTTP protocol.

@author Megatron King
@since 2019/1/31 16:13
netbare-core/src/main/java/com/github/megatronking/netbare/http/HttpHeaderSniffInterceptor.java