public interface HttpRequestBuilder
| Modifier and Type | Method and Description |
|---|---|
default HttpContentRequest |
contentRequest(java.lang.String method,
java.lang.String url)
Create a new request with the given method and url.
|
default HttpContentRequest |
contentRequest(java.lang.String method,
java.net.URL url)
Create a new request with the given method and url.
|
default DeleteRequest |
delete(java.lang.String url)
Create a new DELETE request with the given url.
|
default DeleteRequest |
delete(java.net.URL url)
Create a new DELETE request with the given url.
|
default GetRequest |
get(java.lang.String url)
Create a new GET request with the given url.
|
default GetRequest |
get(java.net.URL url)
Create a new GET request with the given url.
|
default HeadRequest |
head(java.lang.String url)
Create a new HEAD request with the given url.
|
default HeadRequest |
head(java.net.URL url)
Create a new HEAD request with the given url.
|
default PostRequest |
post(java.lang.String url)
Create a new POST request with the given url.
|
default PostRequest |
post(java.net.URL url)
Create a new POST request with the given url.
|
default PutRequest |
put(java.lang.String url)
Create a new PUT request with the given url.
|
default PutRequest |
put(java.net.URL url)
Create a new PUT request with the given url.
|
default HttpRequest |
request(java.lang.String method,
java.lang.String url)
Create a new request with the given method and url.
|
default HttpRequest |
request(java.lang.String method,
java.net.URL url)
Create a new request with the given method and url.
|
default GetRequest get(@Nonnull java.lang.String url) throws java.net.MalformedURLException
url - The url to send the request tojava.net.MalformedURLException - If the url is invaliddefault GetRequest get(@Nonnull java.net.URL url)
url - The url to send the request todefault HeadRequest head(@Nonnull java.lang.String url) throws java.net.MalformedURLException
url - The url to send the request tojava.net.MalformedURLException - If the url is invaliddefault HeadRequest head(@Nonnull java.net.URL url)
url - The url to send the request todefault DeleteRequest delete(@Nonnull java.lang.String url) throws java.net.MalformedURLException
url - The url to send the request tojava.net.MalformedURLException - If the url is invaliddefault DeleteRequest delete(@Nonnull java.net.URL url)
url - The url to send the request todefault PostRequest post(@Nonnull java.lang.String url) throws java.net.MalformedURLException
url - The url to send the request tojava.net.MalformedURLException - If the url is invaliddefault PostRequest post(@Nonnull java.net.URL url)
url - The url to send the request todefault PutRequest put(@Nonnull java.lang.String url) throws java.net.MalformedURLException
url - The url to send the request tojava.net.MalformedURLException - If the url is invaliddefault PutRequest put(@Nonnull java.net.URL url)
url - The url to send the request todefault HttpRequest request(@Nonnull java.lang.String method, @Nonnull java.lang.String url) throws java.net.MalformedURLException
method - The method to useurl - The url to send the request tojava.net.MalformedURLException - If the url is invaliddefault HttpRequest request(@Nonnull java.lang.String method, @Nonnull java.net.URL url)
method - The method to useurl - The url to send the request todefault HttpContentRequest contentRequest(@Nonnull java.lang.String method, @Nonnull java.lang.String url) throws java.net.MalformedURLException
method - The method to useurl - The url to send the request tojava.net.MalformedURLException - If the url is invaliddefault HttpContentRequest contentRequest(@Nonnull java.lang.String method, @Nonnull java.net.URL url)
method - The method to useurl - The url to send the request to