Class Http2.Stream
java.lang.Object
com.codename1.backend.Http2.Stream
- Enclosing class:
Http2
One request, once the client has finished sending it.
-
Method Summary
Modifier and TypeMethodDescriptionFrom :authority, which is what Host is in HTTP/1.1.byte[]getBody()The body as it ARRIVED, so the caller can check it before decoding.longThe body's whole length, wherever it is.Lower-cased names, as HTTP/2 requires them on the wire.intgetId()getPath()Path and query, from the :path pseudo-header.intThe descriptor of a body that went to disk on arrival (an unlinked temporary file), or -1 when it is ingetBody().
-
Method Details
-
getId
public int getId() -
getMethod
-
getPath
Path and query, from the :path pseudo-header. -
getAuthority
From :authority, which is what Host is in HTTP/1.1. -
getHeaders
Lower-cased names, as HTTP/2 requires them on the wire. -
getBody
public byte[] getBody()The body as it ARRIVED, so the caller can check it before decoding. Empty when the body was spooled; seetakeBodyFd(). -
takeBodyFd
public int takeBodyFd()The descriptor of a body that went to disk on arrival (an unlinked temporary file), or -1 when it is ingetBody(). Handed over once: the caller owns closing it, and a second call answers -1. Must be called before the nextHttp2.nextRequest(), which frees an unclaimed one. -
getBodyLength
public long getBodyLength()The body's whole length, wherever it is. -
getBodyAsString
-