Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public static final class Http2.Stream
- Object
- Http2.Stream
One request, once the client has finished sending it.
Methods
public int getId() | |
public String getMethod() | |
public String getPath() | Path and query, from the :path pseudo-header. |
public String getAuthority() | From :authority, which is what Host is in HTTP/1.1. |
public Map getHeaders() | Lower-cased names, as HTTP/2 requires them on the wire. |
public byte[] getBody() | The body as it ARRIVED, so the caller can check it before decoding. |
public String getBodyAsString() |
Inherited methods
Method details
getId
public int getId()getMethod
public String getMethod()getPath
public String getPath()Path and query, from the :path pseudo-header.
getAuthority
public String getAuthority()From :authority, which is what Host is in HTTP/1.1.
getHeaders
public Map 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.
getBodyAsString
public String getBodyAsString()