public class TestResponse extends Object
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<byte[]> |
asBytes()
Returns content as bytes when response is completed.
|
CompletableFuture<String> |
asString()
Returns content as
String when response is completed when coding charset is get from response and defaults to
UTF-8. |
io.helidon.common.http.Parameters |
headers()
Returns all response headers.
|
io.helidon.common.http.Http.ResponseStatus |
status()
Returns an HTTP status code of the response.
|
WebServer |
webServer()
Returns a web server instance.
|
public io.helidon.common.http.Http.ResponseStatus status()
public io.helidon.common.http.Parameters headers()
public CompletableFuture<byte[]> asBytes()
public CompletableFuture<String> asString()
String when response is completed when coding charset is get from response and defaults to
UTF-8.public WebServer webServer()
Copyright © 2018–2019 Oracle Corporation. All rights reserved.