Search in sources :

Example 41 with HttpOptions

use of org.apache.http.client.methods.HttpOptions in project knox by apache.

the class DefaultDispatch method doOptions.

@Override
public void doOptions(URI url, HttpServletRequest request, HttpServletResponse response) throws IOException {
    HttpOptions method = new HttpOptions(url);
    executeRequestWrapper(method, request, response);
}
Also used : HttpOptions(org.apache.http.client.methods.HttpOptions)

Aggregations

HttpOptions (org.apache.http.client.methods.HttpOptions)41 Test (org.junit.Test)25 HttpResponse (org.apache.http.HttpResponse)15 CloseableHttpClient (org.apache.http.impl.client.CloseableHttpClient)15 CloseableHttpResponse (org.apache.http.client.methods.CloseableHttpResponse)13 Closeable (java.io.Closeable)9 HttpClient (org.apache.http.client.HttpClient)9 HttpHead (org.apache.http.client.methods.HttpHead)9 HttpPost (org.apache.http.client.methods.HttpPost)8 HttpPut (org.apache.http.client.methods.HttpPut)8 Header (org.apache.http.Header)7 HttpGet (org.apache.http.client.methods.HttpGet)7 IOException (java.io.IOException)5 URI (java.net.URI)5 HttpRequestBase (org.apache.http.client.methods.HttpRequestBase)5 HttpTrace (org.apache.http.client.methods.HttpTrace)5 HttpUriRequest (org.apache.http.client.methods.HttpUriRequest)5 TestRequest (com.android.volley.mock.TestRequest)4 HttpDelete (org.apache.http.client.methods.HttpDelete)4 HttpPatch (org.apache.http.client.methods.HttpPatch)4