/** * A default DELETE request to be modified using the `withX` methods. */ public static HttpRequest DELETE(String uri) { return create(uri).withMethod(HttpMethods.DELETE); }
/** * Creates a chunk from data with an empty extension. */ public static ChunkStreamPart create(ByteString data) { return create(data, ""); }
/** * A default GET request to be modified using the `withX` methods. */ public static HttpRequest GET(String uri) { return create(uri); }
/** * Returns the name of the method, always equal to [[value]]. */ public final String name() { return value(); } /**
/** * A default HEAD request to be modified using the `withX` methods. */ public static HttpRequest HEAD(String uri) { return create(uri).withMethod(HttpMethods.HEAD); }
/** * Creates a chunk from data with an empty extension. */ public static ChunkStreamPart create(ByteString data) { return create(data, ""); }
/** * A default OPTIONS request to be modified using the `withX` methods. */ public static HttpRequest OPTIONS(String uri) { return create(uri).withMethod(HttpMethods.OPTIONS); } }
/** * A default PATCH request to be modified using the `withX` methods. */ public static HttpRequest PATCH(String uri) { return create(uri).withMethod(HttpMethods.PATCH); }