Inheritance diagram for HttpRequest:
Definition at line 72 of file HttpRequest.d.
|
Setup exceptions and so on Definition at line 96 of file HttpRequest.d. References InvalidState. |
|
Create a Request instance. Note that we create a bunch of internal support objects on a per-thread basis. This is so we don't have to create them on demand; however, we should be careful about resetting them all before each new usage. Reimplemented in ServletRequest. Definition at line 110 of file HttpRequest.d. References cookies, HttpMessage::getHeader(), HttpCookies, HttpQueryParams, HttpReader, line, params, reader, startLine, and uri. |
|
Reset this request, ready for the next connection Reimplemented from HttpMessage. Reimplemented in ServletRequest. Definition at line 142 of file HttpRequest.d. References cookies, gulped, host, mimed, params, port, HttpCookies::reset(), MutableUri::reset(), uri, and uried. Referenced by HttpBridge::cross(). |
|
Return the HTTP startline from the connection request Definition at line 162 of file HttpRequest.d. References startLine. |
|
Return the request Uri as an immutable version ... Definition at line 173 of file HttpRequest.d. References Uri::getScheme(), getServerScheme(), MutableUri::parse(), MutableUri::setScheme(), startLine, uri, and uried. Referenced by getExplicitUri(), getHost(), and getInputParameters(). |
|
Ensure the uri has a host present. Return as an immutable Definition at line 191 of file HttpRequest.d. References getHost(), Uri::getHost(), getRequestUri(), MutableUri::setHost(), and uri. |
|
Return the reader for the request input. This sets a boundary sentinel, indicating we're finished processing the input headers. Reimplemented in ServletRequest. Definition at line 208 of file HttpRequest.d. |
|
Return the set of parsed request cookies Definition at line 221 of file HttpRequest.d. References cookies, gulped, and InvalidState. |
|
Return the set of parsed input headers Definition at line 234 of file HttpRequest.d. References HttpMessage::getHeader(), gulped, and InvalidState. |
|
Return the set of input parameters, from the query string and/or from POST data. Definition at line 248 of file HttpRequest.d. References Uri::decode(), IBuffer::get(), HttpHeaders::getInt(), Uri::getQuery(), getRequestUri(), params, startLine, and uri. |
|
Return the buffer attached to the input conduit. This also sets a sentinel indicating we cannot read headers anymore. Definition at line 292 of file HttpRequest.d. References gulped. |
|
Write the startline and all input headers to the provider IWriter. This can be used for debug purposes. Reimplemented from HttpMessage. Definition at line 306 of file HttpRequest.d. References startLine, and IWritable::write(). |
|
Parse all headers from the input. Definition at line 318 of file HttpRequest.d. References HttpMessage::getHeader(), line, CompositeToken::next(), IBuffer::readable(), startLine, Stdout, and version. Referenced by HttpBridge::cross(). |
|
Proxy this request across to the server instance Definition at line 349 of file HttpRequest.d. References HttpMessage::getBridge(), HttpMessage::getConduit(), IServer::getRemoteAddress(), and IProviderBridge::getServer(). |
|
Proxy this request across to the server instance Reimplemented in ServletRequest. Definition at line 360 of file HttpRequest.d. References HttpMessage::getBridge(), HttpMessage::getConduit(), IServer::getRemoteHost(), and IProviderBridge::getServer(). |
|
Ask the server instance what protocol it is using Definition at line 371 of file HttpRequest.d. References HttpMessage::getBridge(), IServer::getProtocol(), and IProviderBridge::getServer(). Referenced by getRequestUri(). |
|
Return the encoding from the input headers. Reimplemented from HttpMessage. Definition at line 382 of file HttpRequest.d. References getMimeType(). |
|
Return the mime-type from the input headers. Reimplemented from HttpMessage. Definition at line 394 of file HttpRequest.d. References mimed, and HttpMessage::setMimeAndEncoding(). Referenced by getEncoding(). |
|
Return the port number this request was sent to. Definition at line 410 of file HttpRequest.d. References HttpMessage::getBridge(), getHost(), IServer::getPort(), IProviderBridge::getServer(), and port. |
|
Get the host name. If we can't get it from the Uri, then we try to extract for the host header. Failing that, we ask the server instance to provide it for us. Definition at line 430 of file HttpRequest.d. References Exception, HttpMessage::getBridge(), HttpMessage::getHeader(), IServer::getHost(), Uri::getHost(), Uri::getPort(), getRequestUri(), IProviderBridge::getServer(), host, Uri::InvalidPort, Uri::parse(), port, and uri. Referenced by getExplicitUri(), and getPort(). |
|
Construct this HttpMessage using the specified HttpBridge. The bridge provides a gateway to both the server and provider (servicer) instances. Definition at line 103 of file HttpMessage.d. References HttpMessage::bridge, Buffer, HttpMessage::buffer, and HttpMessage::headers. |
|
Set the IConduit used by this message; typically this is the SocketConduit instantiated in response to a connection request. Given that the HttpMessage remains live (on a per-thread basis), this method will be called for each connection request. Definition at line 143 of file HttpMessage.d. References HttpMessage::buffer, Buffer::clear(), and Buffer::setConduit(). Referenced by HttpBridge::cross(). |
|
Return the IConduit in use Definition at line 155 of file HttpMessage.d. References HttpMessage::buffer, and Buffer::getConduit(). Referenced by getRemoteAddr(), and getRemoteHost(). |
|
Return the buffer bound to our conduit Definition at line 166 of file HttpMessage.d. References HttpMessage::buffer. |
|
Return the HttpHeaders wrapper Definition at line 177 of file HttpMessage.d. References HttpMessage::headers. Referenced by HttpResponse::commit(), getHost(), getInputHeaders(), readHeaders(), HttpResponse::sendRedirect(), ServletResponse::setContentLength(), and this(). |
|
Return the bridge used by the this message Definition at line 188 of file HttpMessage.d. References HttpMessage::bridge. Referenced by getHost(), getPort(), getRemoteAddr(), getRemoteHost(), and getServerScheme(). |
|
Set the content-type header, and parse it for encoding and mime-tpye information. Reimplemented in ServletResponse. Definition at line 222 of file HttpMessage.d. References HttpMutableHeaders::add(), HttpMessage::headers, and HttpMessage::setMimeAndEncoding(). Referenced by HttpResponse::sendError(). |
|
Return the content-type from the headers. Reimplemented in ServletRequest. Definition at line 234 of file HttpMessage.d. References HttpHeaders::get(), and HttpMessage::headers. |
|
Parse a text string looking for encoding and mime information Definition at line 245 of file HttpMessage.d. References HttpMessage::encoding, and HttpMessage::mimeType. Referenced by getMimeType(), and HttpMessage::setContentType(). |
|
Definition at line 74 of file HttpRequest.d. |
|
Definition at line 75 of file HttpRequest.d. |
|
Definition at line 76 of file HttpRequest.d. Referenced by getMimeType(), and reset(). |
|
Definition at line 76 of file HttpRequest.d. Referenced by getRequestUri(), and reset(). |
|
Definition at line 76 of file HttpRequest.d. Referenced by getInputBuffer(), getInputCookies(), getInputHeaders(), getReader(), and reset(). |
|
Definition at line 81 of file HttpRequest.d. Referenced by getExplicitUri(), getHost(), getInputParameters(), getRequestUri(), reset(), and this(). |
|
Definition at line 82 of file HttpRequest.d. Referenced by readHeaders(), and this(). |
|
Definition at line 83 of file HttpRequest.d. Referenced by getReader(), and this(). |
|
Definition at line 84 of file HttpRequest.d. Referenced by getInputParameters(), reset(), and this(). |
|
Definition at line 85 of file HttpRequest.d. Referenced by getInputCookies(), reset(), and this(). |
|
Definition at line 86 of file HttpRequest.d. Referenced by getInputParameters(), getRequestUri(), getStartLine(), readHeaders(), this(), and write(). |
|
Definition at line 88 of file HttpRequest.d. Referenced by getInputCookies(), getInputHeaders(), and this(). |