public Builder newBuilder() { return new Builder(this); }
/** * Creates an HTTP response builder with a given status and empty body. * * @param status response status * @return a new builder */ public static Builder response(HttpResponseStatus status) { return new Builder(status); }
/** * Creates an HTTP response builder with a status of 200 OK and empty body. * * @return a new builder */ public static Builder response() { return new Builder(); }
/** * Creates an HTTP response builder with a given status and body. * * @param status response status * @param body response body * @return a new builder */ public static Builder response(HttpResponseStatus status, Observable<ByteBuf> body) { return new Builder(status).body(body); }