Skip to content

Commit

Permalink
Add Javadocs for QUERY @SInCE
Browse files Browse the repository at this point in the history
  • Loading branch information
desiderantes committed Oct 19, 2024
1 parent 45356e4 commit 40d9d26
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions httpcore5/src/main/java/org/apache/hc/core5/http/Method.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ public enum Method {

/**
* The HTTP {@code QUERY} method is safe and idempotent.
*
* @since 5.4
*/
QUERY(true, true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,23 @@ public static ClassicRequestBuilder head(final String uri) {
return new ClassicRequestBuilder(Method.HEAD, uri);
}

/**
* @since 5.4
*/
public static ClassicRequestBuilder query() {
return new ClassicRequestBuilder(Method.QUERY);
}

/**
* @since 5.4
*/
public static ClassicRequestBuilder query(final URI uri) {
return new ClassicRequestBuilder(Method.QUERY, uri);
}

/**
* @since 5.4
*/
public static ClassicRequestBuilder query(final String uri) {
return new ClassicRequestBuilder(Method.QUERY, uri);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,23 @@ public static AsyncRequestBuilder head(final String uri) {
return new AsyncRequestBuilder(Method.HEAD, uri);
}

/**
* @since 5.4
*/
public static AsyncRequestBuilder query() {
return new AsyncRequestBuilder(Method.QUERY);
}

/**
* @since 5.4
*/
public static AsyncRequestBuilder query(final URI uri) {
return new AsyncRequestBuilder(Method.QUERY, uri);
}

/**
* @since 5.4
*/
public static AsyncRequestBuilder query(final String uri) {
return new AsyncRequestBuilder(Method.QUERY, uri);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,23 @@ public static BasicRequestBuilder head(final String uri) {
return new BasicRequestBuilder(Method.HEAD, uri);
}

/**
* @since 5.4
*/
public static BasicRequestBuilder query() {
return new BasicRequestBuilder(Method.QUERY);
}

/**
* @since 5.4
*/
public static BasicRequestBuilder query(final URI uri) {
return new BasicRequestBuilder(Method.QUERY, uri);
}

/**
* @since 5.4
*/
public static BasicRequestBuilder query(final String uri) {
return new BasicRequestBuilder(Method.QUERY, uri);
}
Expand Down

0 comments on commit 40d9d26

Please sign in to comment.