## Uses of Interface
org.apache.http.HttpRequest

Packages that use HttpRequest
Package | Description
--- | ---
org.apache.http | Core HTTP components based on the blocking I/O model.
org.apache.http.impl | Default implementations for interfaces in `org.apache.http`.
org.apache.http.impl.io | Default implementations for interfaces in `org.apache.http.io`.
org.apache.http.impl.nio | Default implementations for interfaces in `org.apache.http.nio`.
org.apache.http.impl.nio.codecs | Default implementations for interfaces in `org.apache.http.nio.codecs`.
org.apache.http.impl.nio.pool | Basic implementations for interfaces in `org.apache.http.nio.pool`.
org.apache.http.message | Basic HTTP message implementations.
org.apache.http.nio | Core HTTP components based on the non-blocking I/O model.
org.apache.http.nio.protocol | Asynchronous HTTP protocol handlers based on the non-blocking I/O model.
org.apache.http.protocol | HTTP protocol execution framework and synchronous HTTP protocol handlers based on the blocking I/O model.

### Uses of HttpRequest in org.apache.http

Subinterfaces of HttpRequest in org.apache.http
Modifier and Type | Interface and Description
--- | ---
`interface` | `HttpEntityEnclosingRequest` A request with an entity.

Methods in org.apache.http that return HttpRequest
Modifier and Type | Method and Description
--- | ---
`HttpRequest` | HttpRequestFactory.`newHttpRequest(RequestLine requestline)`
`HttpRequest` | HttpRequestFactory.`newHttpRequest(String method, String uri)`
`HttpRequest` | HttpServerConnection.`receiveRequestHeader()` Receives the request line and all headers available from this connection.

Methods in org.apache.http with parameters of type HttpRequest
Modifier and Type | Method and Description
--- | ---
`void` | HttpRequestInterceptor.`process(HttpRequest request, HttpContext context)` Processes a request.
`void` | HttpClientConnection.`sendRequestHeader(HttpRequest request)` Sends the request line and all headers over the connection.

### Uses of HttpRequest in org.apache.http.impl

Methods in org.apache.http.impl that return HttpRequest
Modifier and Type | Method and Description
--- | ---
`HttpRequest` | DefaultHttpRequestFactory.`newHttpRequest(RequestLine requestline)`
`HttpRequest` | DefaultHttpRequestFactory.`newHttpRequest(String method, String uri)`
`HttpRequest` | DefaultBHttpServerConnection.`receiveRequestHeader()`
`HttpRequest` | AbstractHttpServerConnection.`receiveRequestHeader()` Deprecated.

Methods in org.apache.http.impl that return types with arguments of type HttpRequest
Modifier and Type | Method and Description
--- | ---
`protected HttpMessageParser<HttpRequest>` | AbstractHttpServerConnection.`createRequestParser(SessionInputBuffer buffer, HttpRequestFactory requestFactory, HttpParams params)` Deprecated. Creates an instance of `HttpMessageParser` to be used for parsing HTTP requests received over this connection.
`protected HttpMessageWriter<HttpRequest>` | AbstractHttpClientConnection.`createRequestWriter(SessionOutputBuffer buffer, HttpParams params)` Deprecated. Creates an instance of `HttpMessageWriter` to be used for writing out HTTP requests sent over this connection.

Methods in org.apache.http.impl with parameters of type HttpRequest
Modifier and Type | Method and Description
--- | ---
`protected void` | DefaultBHttpServerConnection.`onRequestReceived(HttpRequest request)`
`protected void` | DefaultBHttpClientConnection.`onRequestSubmitted(HttpRequest request)`
`void` | AbstractHttpClientConnection.`sendRequestHeader(HttpRequest request)` Deprecated.
`void` | DefaultBHttpClientConnection.`sendRequestHeader(HttpRequest request)`

Constructor parameters in org.apache.http.impl with type arguments of type HttpRequest
Constructor and Description

`DefaultBHttpClientConnection(int buffersize, int fragmentSizeHint, CharsetDecoder chardecoder, CharsetEncoder charencoder, MessageConstraints constraints, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory)`
Creates new instance of DefaultBHttpClientConnection.

`DefaultBHttpClientConnectionFactory(ConnectionConfig cconfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory)`
`DefaultBHttpClientConnectionFactory(ConnectionConfig cconfig, HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory)`

`DefaultBHttpServerConnection(int buffersize, int fragmentSizeHint, CharsetDecoder chardecoder, CharsetEncoder charencoder, MessageConstraints constraints, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageParserFactory<HttpRequest> requestParserFactory, HttpMessageWriterFactory<HttpResponse> responseWriterFactory)`
Creates new instance of DefaultBHttpServerConnection.

`DefaultBHttpServerConnectionFactory(ConnectionConfig cconfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageParserFactory<HttpRequest> requestParserFactory, HttpMessageWriterFactory<HttpResponse> responseWriterFactory)`
`DefaultBHttpServerConnectionFactory(ConnectionConfig cconfig, HttpMessageParserFactory<HttpRequest> requestParserFactory, HttpMessageWriterFactory<HttpResponse> responseWriterFactory)`

### Uses of HttpRequest in org.apache.http.impl.io

Methods in org.apache.http.impl.io that return HttpRequest
Modifier and Type | Method and Description
--- | ---
`protected HttpRequest` | DefaultHttpRequestParser.`parseHead(SessionInputBuffer sessionBuffer)`

Methods in org.apache.http.impl.io that return types with arguments of type HttpRequest
Modifier and Type | Method and Description
--- | ---
`HttpMessageParser<HttpRequest>` | DefaultHttpRequestParserFactory.`create(SessionInputBuffer buffer, MessageConstraints constraints)`
`HttpMessageWriter<HttpRequest>` | DefaultHttpRequestWriterFactory.`create(SessionOutputBuffer buffer)`

Methods in org.apache.http.impl.io with parameters of type HttpRequest
Modifier and Type | Method and Description
--- | ---
`protected void` | HttpRequestWriter.`writeHeadLine(HttpRequest message)` Deprecated.
`protected void` | DefaultHttpRequestWriter.`writeHeadLine(HttpRequest message)`

### Uses of HttpRequest in org.apache.http.impl.nio

Fields in org.apache.http.impl.nio declared as HttpRequest
Modifier and Type | Field and Description
--- | ---
`protected HttpRequest` | NHttpConnectionBase.`request`

Fields in org.apache.http.impl.nio with type parameters of type HttpRequest
Modifier and Type | Field and Description
--- | ---
`protected NHttpMessageParser<HttpRequest>` | DefaultNHttpServerConnection.`requestParser`
`protected NHttpMessageWriter<HttpRequest>` | DefaultNHttpClientConnection.`requestWriter`

Methods in org.apache.http.impl.nio that return HttpRequest
Modifier and Type | Method and Description
--- | ---
`HttpRequest` | NHttpConnectionBase.`getHttpRequest()`

Methods in org.apache.http.impl.nio that return types with arguments of type HttpRequest
Modifier and Type | Method and Description
--- | ---
`protected NHttpMessageParser<HttpRequest>` | DefaultNHttpServerConnection.`createRequestParser(SessionInputBuffer buffer, HttpRequestFactory requestFactory, HttpParams params)` Deprecated. (4.3) use constructor.
`protected NHttpMessageWriter<HttpRequest>` | DefaultNHttpClientConnection.`createRequestWriter(SessionOutputBuffer buffer, HttpParams params)` Deprecated. (4.3) use constructor.

Methods in org.apache.http.impl.nio with parameters of type HttpRequest
Modifier and Type | Method and Description
--- | ---
`protected void` | DefaultNHttpServerConnection.`onRequestReceived(HttpRequest request)`
`protected void` | DefaultNHttpClientConnection.`onRequestSubmitted(HttpRequest request)`
`void` | DefaultNHttpClientConnection.`submitRequest(HttpRequest request)`

Constructor parameters in org.apache.http.impl.nio with type arguments of type HttpRequest
Constructor and Description

`DefaultNHttpClientConnection(IOSession session, int buffersize, int fragmentSizeHint, ByteBufferAllocator allocator, CharsetDecoder chardecoder, CharsetEncoder charencoder, MessageConstraints constraints, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, NHttpMessageParserFactory<HttpResponse> responseParserFactory)`
Creates new instance DefaultNHttpClientConnection given the underlying I/O session.

`DefaultNHttpClientConnectionFactory(ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ByteBufferAllocator allocator, ConnectionConfig cconfig)`
`DefaultNHttpClientConnectionFactory(NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ByteBufferAllocator allocator, ConnectionConfig cconfig)`
`DefaultNHttpClientConnectionFactory(NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ConnectionConfig cconfig)`

`DefaultNHttpServerConnection(IOSession session, int buffersize, int fragmentSizeHint, ByteBufferAllocator allocator, CharsetDecoder chardecoder, CharsetEncoder charencoder, MessageConstraints constraints, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, NHttpMessageParserFactory<HttpRequest> requestParserFactory, NHttpMessageWriterFactory<HttpResponse> responseWriterFactory)`
Creates new instance DefaultNHttpServerConnection given the underlying I/O session.

`DefaultNHttpServerConnectionFactory(ByteBufferAllocator allocator, NHttpMessageParserFactory<HttpRequest> requestParserFactory, NHttpMessageWriterFactory<HttpResponse> responseWriterFactory, ConnectionConfig cconfig)`
`DefaultNHttpServerConnectionFactory(ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, NHttpMessageParserFactory<HttpRequest> requestParserFactory, NHttpMessageWriterFactory<HttpResponse> responseWriterFactory, ByteBufferAllocator allocator, ConnectionConfig cconfig)`
`SSLNHttpClientConnectionFactory(SSLContext sslcontext, SSLSetupHandler sslHandler, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ByteBufferAllocator allocator, ConnectionConfig cconfig)`
`SSLNHttpClientConnectionFactory(SSLContext sslcontext, SSLSetupHandler sslHandler, NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ByteBufferAllocator allocator, ConnectionConfig cconfig)`
`SSLNHttpClientConnectionFactory(SSLContext sslcontext, SSLSetupHandler sslHandler, NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ConnectionConfig cconfig)`
`SSLNHttpServerConnectionFactory(SSLContext sslcontext, SSLSetupHandler sslHandler, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, NHttpMessageParserFactory<HttpRequest> requestParserFactory, NHttpMessageWriterFactory<HttpResponse> responseWriterFactory, ByteBufferAllocator allocator, ConnectionConfig cconfig)`
`SSLNHttpServerConnectionFactory(SSLContext sslcontext, SSLSetupHandler sslHandler, NHttpMessageParserFactory<HttpRequest> requestParserFactory, NHttpMessageWriterFactory<HttpResponse> responseWriterFactory, ByteBufferAllocator allocator, ConnectionConfig cconfig)`
`SSLNHttpServerConnectionFactory(SSLContext sslcontext, SSLSetupHandler sslHandler, NHttpMessageParserFactory<HttpRequest> requestParserFactory, NHttpMessageWriterFactory<HttpResponse> responseWriterFactory, ConnectionConfig cconfig)`

### Uses of HttpRequest in org.apache.http.impl.nio.codecs

Methods in org.apache.http.impl.nio.codecs that return HttpRequest
Modifier and Type | Method and Description
--- | ---
`protected HttpRequest` | DefaultHttpRequestParser.`createMessage(CharArrayBuffer buffer)`

Methods in org.apache.http.impl.nio.codecs that return types with arguments of type HttpRequest
Modifier and Type | Method and Description
--- | ---
`NHttpMessageParser<HttpRequest>` | DefaultHttpRequestParserFactory.`create(SessionInputBuffer buffer, MessageConstraints constraints)`
`NHttpMessageWriter<HttpRequest>` | DefaultHttpRequestWriterFactory.`create(SessionOutputBuffer buffer)`

Methods in org.apache.http.impl.nio.codecs with parameters of type HttpRequest
Modifier and Type | Method and Description
--- | ---
`protected void` | DefaultHttpRequestWriter.`writeHeadLine(HttpRequest message)`

### Uses of HttpRequest in org.apache.http.impl.nio.pool

Constructor parameters in org.apache.http.impl.nio.pool with type arguments of type HttpRequest
Constructor and Description
`BasicNIOConnFactory(SSLContext sslcontext, SSLSetupHandler sslHandler, NHttpMessageParserFactory<HttpResponse> responseParserFactory, NHttpMessageWriterFactory<HttpRequest> requestWriterFactory, ByteBufferAllocator allocator, ConnectionConfig config)`

### Uses of HttpRequest in org.apache.http.message

Classes in org.apache.http.message that implement HttpRequest
Modifier and Type | Class and Description
--- | ---
`class` | `BasicHttpEntityEnclosingRequest` Basic implementation of `HttpEntityEnclosingRequest`.
`class` | `BasicHttpRequest` Basic implementation of `HttpRequest`.

### Uses of HttpRequest in org.apache.http.nio

Methods in org.apache.http.nio that return HttpRequest
Modifier and Type | Method and Description
--- | ---
`HttpRequest` | NHttpConnection.`getHttpRequest()` Returns the current HTTP request if one is being received / transmitted.

Methods in org.apache.http.nio with parameters of type HttpRequest
Modifier and Type | Method and Description
--- | ---
`void` | NHttpClientConnection.`submitRequest(HttpRequest request)` Submits `HttpRequest` to be sent to the target server.

### Uses of HttpRequest in org.apache.http.nio.protocol

Methods in org.apache.http.nio.protocol that return HttpRequest
Modifier and Type | Method and Description
--- | ---
`protected HttpRequest` | BasicAsyncRequestConsumer.`buildResult(HttpContext context)`
`HttpRequest` | BasicAsyncClientExchangeHandler.`generateRequest()`
`HttpRequest` | BasicAsyncRequestProducer.`generateRequest()`
`HttpRequest` | HttpAsyncRequestProducer.`generateRequest()` Invoked to generate a HTTP request message head.
`HttpRequest` | HttpAsyncClientExchangeHandler.`generateRequest()` Invoked to generate a HTTP request message head.
`HttpRequest` | BasicAsyncRequestExecutionHandler.`generateRequest()` Deprecated.
`HttpRequest` | AsyncNHttpServiceHandler.ServerConnState.`getRequest()`
`HttpRequest` | HttpAsyncExchange.`getRequest()` Returns the received HTTP request message.
`HttpRequest` | AsyncNHttpClientHandler.ClientConnState.`getRequest()`
`HttpRequest` | NHttpRequestExecutionHandler.`submitRequest(HttpContext context)` Deprecated. Triggered when the underlying connection is ready to send a new HTTP request to the target host.
`HttpRequest` | HttpRequestExecutionHandler.`submitRequest(HttpContext context)` Deprecated. Triggered when the underlying connection is ready to send a new HTTP request to the target host.

Methods in org.apache.http.nio.protocol that return types with arguments of type HttpRequest
Modifier and Type | Method and Description
--- | ---
`HttpAsyncRequestConsumer<HttpRequest>` | BasicAsyncRequestHandler.`processRequest(HttpRequest request, HttpContext context)`

Methods in org.apache.http.nio.protocol with parameters of type HttpRequest
Modifier and Type | Method and Description
--- | ---
`protected boolean` | NHttpHandlerBase.`canResponseHaveBody(HttpRequest request, HttpResponse response)` Deprecated.
`protected String` | UriHttpAsyncRequestHandlerMapper.`getRequestPath(HttpRequest request)` Extracts request path from the given `HttpRequest`
`void` | BasicAsyncRequestHandler.`handle(HttpRequest request, HttpAsyncExchange httpexchange, HttpContext context)`
`abstract void` | SimpleNHttpRequestHandler.`handle(HttpRequest request, HttpResponse response, HttpContext context)` Deprecated.
`void` | SimpleNHttpRequestHandler.`handle(HttpRequest request, HttpResponse response, NHttpResponseTrigger trigger, HttpContext context)` Deprecated.
`void` | NHttpRequestHandler.`handle(HttpRequest request, HttpResponse response, NHttpResponseTrigger trigger, HttpContext context)` Deprecated. Initiates processing of the request.
`HttpAsyncRequestHandler<?>` | UriHttpAsyncRequestHandlerMapper.`lookup(HttpRequest request)` Looks up a handler matching the given request URI.
`HttpAsyncRequestHandler<?>` | HttpAsyncRequestHandlerMapper.`lookup(HttpRequest request)` Looks up a handler matching the given request.
`protected void` | BasicAsyncRequestConsumer.`onRequestReceived(HttpRequest request)`
`protected abstract void` | AbstractAsyncRequestConsumer.`onRequestReceived(HttpRequest request)` Invoked when a HTTP request message is received.
`HttpAsyncRequestConsumer<HttpRequest>` | BasicAsyncRequestHandler.`processRequest(HttpRequest request, HttpContext context)`
`HttpAsyncRequestConsumer<T>` | HttpAsyncRequestHandler.`processRequest(HttpRequest request, HttpContext context)` Triggered when an incoming request is received.
`void` | HttpAsyncRequestConsumer.`requestReceived(HttpRequest request)` Invoked when a HTTP request message is received.
`void` | AbstractAsyncRequestConsumer.`requestReceived(HttpRequest request)` Use `AbstractAsyncRequestConsumer.onRequestReceived(HttpRequest)` instead.
`void` | AsyncNHttpServiceHandler.ServerConnState.`setRequest(HttpRequest request)`
`void` | AsyncNHttpClientHandler.ClientConnState.`setRequest(HttpRequest request)`

Constructors in org.apache.http.nio.protocol with parameters of type HttpRequest
Constructor and Description
`BasicAsyncRequestProducer(HttpHost target, HttpRequest request)` Creates a producer that can be used to transmit the given request message.

### Uses of HttpRequest in org.apache.http.protocol

Methods in org.apache.http.protocol that return HttpRequest
Modifier and Type | Method and Description
--- | ---
`HttpRequest` | HttpCoreContext.`getRequest()`

Methods in org.apache.http.protocol with parameters of type HttpRequest
Modifier and Type | Method and Description
--- | ---
`protected boolean` | HttpRequestExecutor.`canResponseHaveBody(HttpRequest request, HttpResponse response)` Decide whether a response comes with an entity.
`protected HttpResponse` | HttpRequestExecutor.`doReceiveResponse(HttpRequest request, HttpClientConnection conn, HttpContext context)` Waits for and receives a response.
`protected HttpResponse` | HttpRequestExecutor.`doSendRequest(HttpRequest request, HttpClientConnection conn, HttpContext context)` Send the given request over the given connection.
`protected void` | HttpService.`doService(HttpRequest request, HttpResponse response, HttpContext context)` The default implementation of this method attempts to resolve an `HttpRequestHandler` for the request URI of the given request and, if found, executes its `HttpRequestHandler.handle(HttpRequest, HttpResponse, HttpContext)` method.
`HttpResponse` | HttpRequestExecutor.`execute(HttpRequest request, HttpClientConnection conn, HttpContext context)` Sends the request and obtain a response.
`protected String` | UriHttpRequestHandlerMapper.`getRequestPath(HttpRequest request)` Extracts request path from the given `HttpRequest`
`void` | HttpRequestHandler.`handle(HttpRequest request, HttpResponse response, HttpContext context)` Handles the request and produces a response to be sent back to the client.
`HttpRequestHandler` | HttpRequestHandlerMapper.`lookup(HttpRequest request)` Looks up a handler matching the given request.
`HttpRequestHandler` | UriHttpRequestHandlerMapper.`lookup(HttpRequest request)` Looks up a handler matching the given request URI.
`void` | HttpRequestExecutor.`preProcess(HttpRequest request, HttpProcessor processor, HttpContext context)` Pre-process the given request using the given protocol processor and initiates the process of request execution.
`void` | RequestTargetHost.`process(HttpRequest request, HttpContext context)`
`void` | RequestUserAgent.`process(HttpRequest request, HttpContext context)`
`void` | BasicHttpProcessor.`process(HttpRequest request, HttpContext context)` Deprecated.
`void` | RequestConnControl.`process(HttpRequest request, HttpContext context)`
`void` | RequestDate.`process(HttpRequest request, HttpContext context)`
`void` | ImmutableHttpProcessor.`process(HttpRequest request, HttpContext context)`
`void` | RequestContent.`process(HttpRequest request, HttpContext context)`
`void` | RequestExpectContinue.`process(HttpRequest request, HttpContext context)`
`void` | HttpExpectationVerifier.`verify(HttpRequest request, HttpResponse response, HttpContext context)` Verifies whether the given request meets the server's expectations.