Package | Description |
---|---|
io.vertx.ext.web.api.service |
Modifier and Type | Method and Description |
---|---|
static ServiceResponse |
ServiceResponse.completedWithJson(Buffer json)
Creates a
ServiceResponse with status code 200, status message OK, content type application/json and json as body |
static ServiceResponse |
ServiceResponse.completedWithJson(JsonArray jsonArray)
Creates a
ServiceResponse with status code 200, status message OK, content type application/json and jsonArray as body |
static ServiceResponse |
ServiceResponse.completedWithJson(JsonObject jsonObject)
Creates a
ServiceResponse with status code 200, status message OK, content type application/json and jsonObject as body |
static ServiceResponse |
ServiceResponse.completedWithPlainText(Buffer text)
Creates a
ServiceResponse with status code 200, status message OK, content type text/plain and text as body |
ServiceResponse |
ServiceResponse.putHeader(String key,
String value) |
ServiceResponse |
ServiceResponse.setHeaders(MultiMap headers) |
ServiceResponse |
ServiceResponse.setPayload(Buffer payload) |
ServiceResponse |
ServiceResponse.setStatusCode(Integer statusCode) |
ServiceResponse |
ServiceResponse.setStatusMessage(String statusMessage) |
Constructor and Description |
---|
ServiceResponse(ServiceResponse other) |
Copyright © 2023 Eclipse. All rights reserved.