public class HttpRequest
extends java.lang.Object
Constructor and Description |
---|
HttpRequest() |
Modifier and Type | Method and Description |
---|---|
io.nats.client.impl.Headers |
getHeaders() |
java.lang.String |
getMethod() |
java.lang.String |
getURI()
This is the RAW URI, you may need to perform URL decoding the result.
|
java.lang.String |
getVersion() |
HttpRequest |
method(java.lang.String method)
Note that no validation is performed, but the method is trimmed of whitespace
and converted to all upper case.
|
java.lang.String |
toString() |
HttpRequest |
uri(java.lang.String uri)
This sets the RAW URI, you may need to perform URL encoding before passing
into this method.
|
HttpRequest |
version(java.lang.String version)
Note that no validation is performed on the version.
|
public io.nats.client.impl.Headers getHeaders()
public java.lang.String getMethod()
public HttpRequest method(java.lang.String method)
method
- is the new request method to use.public java.lang.String getURI()
public HttpRequest uri(java.lang.String uri)
uri
- is the new "path" of the URI to use.public java.lang.String getVersion()
public HttpRequest version(java.lang.String version)
version
- is the new HTTP version to use.public java.lang.String toString()
toString
in class java.lang.Object