/** * Creates a request with the PUT method. * * @param uri URI * @param body body * @param body type * @return {@code this} */ public static Builder put(String uri, Observable<ByteBuf> body) { return new Builder(PUT, uri).body(body); }
/** * Creates a request with the DELETE method. * * @param uri URI * @return {@code this} */ public static Builder delete(String uri) { return new Builder(DELETE, uri); }
/** * Creates a request with the HEAD method. * * @param uri URI * @return {@code this} */ public static Builder head(String uri) { return new Builder(HEAD, uri); }
/** * Return a new {@link Builder} that will inherit properties from this request. * This allows a new request to be made that will be identical to this one except for the properties * overridden by the builder methods. * * @return new builder based on this request */ public Builder newBuilder() { return new Builder(this); }
/** * Creates a request with the PATCH method. * * @param uri URI * @param body body * @param body type * @return {@code this} */ public static Builder patch(String uri, Observable<ByteBuf> body) { return new Builder(PATCH, uri).body(body); }
/** * Creates a request with the PATCH method. * * @param uri URI * @return {@code this} */ public static Builder patch(String uri) { return new Builder(PATCH, uri); }
/** * Creates a request with the POST method. * * @param uri URI * @return {@code this} */ public static Builder post(String uri) { return new Builder(POST, uri); }
/** * Creates a request with the POST method. * * @param uri URI * @param body body * @param body type * @return {@code this} */ public static Builder post(String uri, Observable<ByteBuf> body) { return new Builder(POST, uri).body(body); }
/** * Creates a request with the PUT method. * * @param uri URI * @return {@code this} */ public static Builder put(String uri) { return new Builder(PUT, uri); }
/** * Creates a request with the GET method. * * @param uri URI * @return {@code this} */ public static Builder get(String uri) { return new Builder(GET, uri); }