GeezerVison is showing netty.io — DefaultFullHttpRequest (Netty API Reference (4.1.141.Final))
Class DefaultFullHttpRequest
-
-
Constructor Summary
Constructors
Constructor
Description
Create a full HTTP response with the given HTTP version, method, and URI.
Create a full HTTP response with the given HTTP version, method, URI, and contents.
Create a full HTTP response with the given HTTP version, method, URI, contents,
and factories for creating headers and trailers.
Create a full HTTP response with the given HTTP version, method, URI, contents, and header and trailer objects.
Create a full HTTP response with the given HTTP version, method, URI, contents, and header and trailer objects.
-
Method Summary
Modifier and Type
Method
Description
boolean
int
int
Returns the reference count of this object.
boolean
Decreases the reference count by 1 and deallocates this object if the reference count reaches at
0.
boolean
Decreases the reference count by the specified decrement and deallocates this object if the reference
count reaches at 0.
Returns a new ByteBufHolder which contains the specified content.
Increases the reference count by 1.
Increases the reference count by the specified increment.
Set the requested URI (or alternatively, path)
Records the current access location of this object for debugging purposes.
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
-
Constructor Details
-
DefaultFullHttpRequest
Create a full HTTP response with the given HTTP version, method, and URI.
-
DefaultFullHttpRequest
Create a full HTTP response with the given HTTP version, method, URI, and contents.
-
DefaultFullHttpRequest
Create a full HTTP response with the given HTTP version, method, URI, and optional validation.
-
DefaultFullHttpRequest
Create a full HTTP response with the given HTTP version, method, URI, contents, and optional validation.
-
-
DefaultFullHttpRequest
Create a full HTTP response with the given HTTP version, method, URI, contents, and header and trailer objects.
-
DefaultFullHttpRequest
Create a full HTTP response with the given HTTP version, method, URI, contents, and header and trailer objects.
-
Method Details
-
-
-
refCnt
public int refCnt()
Returns the reference count of this object. If 0, it means this object has been deallocated.
- Specified by:
refCnt in interface ReferenceCounted
-
-
-
-
-
release
public boolean release()
Decreases the reference count by 1 and deallocates this object if the reference count reaches at
0.
- Specified by:
release in interface ReferenceCounted
- Returns:
true if and only if the reference count became 0 and this object has been deallocated
-
release
public boolean release(int decrement)
Decreases the reference count by the specified decrement and deallocates this object if the reference
count reaches at 0.
- Specified by:
release in interface ReferenceCounted
- Returns:
true if and only if the reference count became 0 and this object has been deallocated
-
-
-
-
-
-
-
-
-
-
|