public interface OAuth2Response
Modifier and Type | Method and Description |
---|---|
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.
|
MultiMap |
headers()
The HTTP response headers from the HTTP layer.
|
boolean |
is(String contentType)
Helper to analize the response body.
|
JsonArray |
jsonArray()
The HTTP response body as a JsonArray
|
JsonObject |
jsonObject()
The HTTP response body as a JsonObject
|
int |
statusCode()
the returned status code from the HTTP layer.
|
int statusCode()
MultiMap headers()
String getHeader(String name)
name
- of the header to look upBuffer body()
JsonObject jsonObject()
JsonArray jsonArray()
boolean is(String contentType)
contentType
- a content type to test, e.g.: application/jsonCopyright © 2023 Eclipse. All rights reserved.