Package org.apache.hc.core5.http
Interface HttpRequestFactory<T extends HttpRequest>
- All Known Implementing Classes:
DefaultClassicHttpRequestFactory,DefaultHttpRequestFactory
public interface HttpRequestFactory<T extends HttpRequest>
A factory for
HttpRequest objects.- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionnewHttpRequest(String method, String uri) Creates request message with the given request method and request URI.newHttpRequest(String method, URI uri) Creates request message with the given request method and request URI.
-
Method Details
-
newHttpRequest
Creates request message with the given request method and request URI.- Parameters:
method- the request methoduri- the request URI- Returns:
- request message
- Throws:
MethodNotSupportedException- if the givenmethodis not supported.- Since:
- 5.0
-
newHttpRequest
Creates request message with the given request method and request URI.- Parameters:
method- the request methoduri- the request URI- Returns:
- request message
- Throws:
MethodNotSupportedException- if the givenmethodis not supported.
-