public class HttpStream extends CrtResource
Modifier | Constructor and Description |
---|---|
protected |
HttpStream(CrtByteBuffer streamBuffer,
long ptr) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canReleaseReferencesImmediately()
Determines whether a resource releases its dependencies at the same time the native handle is released or if it waits.
|
int |
getResponseStatusCode()
Retrieves the Http Response Status Code
|
void |
incrementWindow(int windowSize)
Opens the Sliding Read/Write Window by the number of bytes passed as an argument for this HttpStream.
|
protected void |
releaseNativeHandle()
Cleans up the stream's associated native handle
|
acquireNativeHandle, addReferenceTo, close, getNativeHandle, isNativeResource, isNull, logNativeResources, releaseReferences, waitForNoResources
protected HttpStream(CrtByteBuffer streamBuffer, long ptr)
protected boolean canReleaseReferencesImmediately()
canReleaseReferencesImmediately
in class CrtResource
protected void releaseNativeHandle()
releaseNativeHandle
in class CrtResource
public void incrementWindow(int windowSize)
windowSize
- How many bytes to increment the sliding window by.public int getResponseStatusCode()
Copyright © 2019. All rights reserved.