public interface OAuth2Response
Modifier and Type | Method and Description |
---|---|
io.vertx.core.buffer.Buffer |
body()
The HTTP response body as a buffer
|
String |
getHeader(String name)
Looks up a HTTP response header by name, in case where the response is a list of headers,
the first one is returned.
|
io.vertx.core.MultiMap |
headers()
The HTTP response headers from the HTTP layer.
|
boolean |
is(String contentType)
Helper to analize the response body.
|
io.vertx.core.json.JsonArray |
jsonArray()
The HTTP response body as a JsonArray
|
io.vertx.core.json.JsonObject |
jsonObject()
The HTTP response body as a JsonObject
|
int |
statusCode()
the returned status code from the HTTP layer.
|
int statusCode()
io.vertx.core.MultiMap headers()
String getHeader(String name)
name
- of the header to look upio.vertx.core.buffer.Buffer body()
io.vertx.core.json.JsonObject jsonObject()
io.vertx.core.json.JsonArray jsonArray()
boolean is(String contentType)
contentType
- a content type to test, e.g.: application/jsonCopyright © 2020 Eclipse. All rights reserved.