Package kos.api
Class RawResponse
- java.lang.Object
-
- kos.api.AbstractResponse
-
- kos.api.RawResponse
-
- All Implemented Interfaces:
Response
class RawResponse extends AbstractResponse
-
-
Field Summary
Fields Modifier and Type Field Description (package private) io.vertx.core.buffer.Bufferbuffer-
Fields inherited from class kos.api.AbstractResponse
headers, statusCode
-
Fields inherited from interface kos.api.Response
ACCEPTED, BAD_GATEWAY, BAD_REQUEST, CONFLICT, CREATED, FORBIDDEN, GATEWAY_TIMEOUT, GONE, METHOD_NOT_ALLOWED, NO_CONTENT, NOT_ACCEPTABLE, NOT_FOUND, NOT_IMPLEMENTED, SERVICE_UNAVAILABLE, TOO_MANY_REQUESTS, UNAUTHORIZED
-
-
Constructor Summary
Constructors Modifier Constructor Description privateRawResponse(int statusCode, @NonNull Map<CharSequence,CharSequence> headers, io.vertx.core.buffer.Buffer buffer)RawResponse(io.vertx.core.buffer.Buffer buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseaddHeader(CharSequence key, CharSequence value)voidsend(KosContext kosContext, io.vertx.core.http.HttpServerResponse response)-
Methods inherited from class kos.api.AbstractResponse
sendStatusAndHeader
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface kos.api.Response
headers, headers, statusCode, statusCode
-
-
-
-
Constructor Detail
-
RawResponse
public RawResponse(io.vertx.core.buffer.Buffer buffer)
-
RawResponse
private RawResponse(int statusCode, @NonNull @NonNull Map<CharSequence,CharSequence> headers, io.vertx.core.buffer.Buffer buffer)
-
-
Method Detail
-
addHeader
public Response addHeader(CharSequence key, CharSequence value)
-
send
public void send(KosContext kosContext, io.vertx.core.http.HttpServerResponse response)
- Specified by:
sendin interfaceResponse- Overrides:
sendin classAbstractResponse
-
-