public class HttpRequest extends Object
| Constructor and Description |
|---|
HttpRequest(io.vertx.core.http.HttpMethod method,
String uri,
io.vertx.core.MultiMap headers,
byte[] payload) |
HttpRequest(io.vertx.core.json.JsonObject object) |
| Modifier and Type | Method and Description |
|---|---|
io.vertx.core.MultiMap |
getHeaders() |
io.vertx.core.http.HttpMethod |
getMethod() |
byte[] |
getPayload() |
String |
getUri() |
void |
setHeaders(io.vertx.core.MultiMap headers) |
io.vertx.core.json.JsonObject |
toJsonObject() |
public HttpRequest(io.vertx.core.http.HttpMethod method,
String uri,
io.vertx.core.MultiMap headers,
byte[] payload)
public HttpRequest(io.vertx.core.json.JsonObject object)
object - objectIllegalArgumentException - When passed in JSON is not in expected format.ClassCastException - IMO, this should be a IllegalArgumentException. Because this
happens when impl tries to cast something we got from passed in JSON.public io.vertx.core.json.JsonObject toJsonObject()
public io.vertx.core.http.HttpMethod getMethod()
public String getUri()
public byte[] getPayload()
public io.vertx.core.MultiMap getHeaders()
public void setHeaders(io.vertx.core.MultiMap headers)
Copyright © 2016–2021. All rights reserved.