HttpClient Members

Mentalis.org Proxy

Mentalis.org Proxy Documentation

HttpClient Members

Public Instance Constructors

HttpClient Constructor Initializes a new instance of the HttpClient class.

Public Instance Properties

RequestedPathGets or sets the requested path.

Public Instance Methods

Dispose (inherited from Client)Disposes of the resources (other than memory) used by the Client.
Equals (inherited from Object)Select the method name to go to the Microsoft documentation.
GetHashCode (inherited from Object)Select the method name to go to the Microsoft documentation.
GetType (inherited from Object)Select the method name to go to the Microsoft documentation.
StartHandshakeStarts receiving data from the client connection.
StartRelay (inherited from Client)Starts relaying data between the remote host and the local client.
ToStringOverloaded. Returns text information about this HttpClient object.

Protected Instance Properties

Buffer (inherited from Client)Gets the buffer to store all the incoming data from the local client.
RemoteBuffer (inherited from Client)Gets the buffer to store all the incoming data from the remote host.

Protected Instance Methods

Finalize (inherited from Object)Select the method name to go to the Microsoft documentation.
MemberwiseClone (inherited from Object)Select the method name to go to the Microsoft documentation.
OnClientReceive (inherited from Client)Called when we have received data from the local client.
Incoming data will immediately be forwarded to the remote host.
OnClientSent (inherited from Client)Called when we have sent data to the local client.
When all the data has been sent, we will start receiving again from the remote host.
OnRemoteReceive (inherited from Client)Called when we have received data from the remote host.
Incoming data will immediately be forwarded to the local client.
OnRemoteSent (inherited from Client)Called when we have sent data to the remote host.
When all the data has been sent, we will start receiving again from the local client.

Private Instance Fields

m_HeaderFieldsHolds the value of the HeaderFields property.
m_HttpQueryHolds the value of the HttpQuery property.
m_HttpRequestTypeHolds the value of the HttpRequestType property.
m_HttpVersionHolds the value of the HttpVersion property.
m_RequestedPathHolds the value of the RequestedPath property.

Private Instance Properties

HeaderFieldsGets or sets a StringDictionary that stores the header fields.
HttpQueryGets or sets the query string, received from the client.
HttpRequestTypeGets or sets the HTTP request type.
HttpVersionGets or sets the HTTP version the client uses.

Private Instance Methods

IsValidQueryChecks whether a specified string is a valid HTTP query string.
OnConnectedCalled when we're connected to the requested remote host.
OnErrorSentCalled when the Bad Request error has been sent to the client.
OnOkSentCalled when an OK reply has been sent to the local client.
OnQuerySentCalled when the HTTP query has been sent to the remote host.
OnReceiveQueryCalled when we received some data from the client connection.
ParseQueryParses a specified HTTP query into its header fields.
ProcessQueryProcesses a specified query and connects to the requested HTTP web server.
RebuildQueryRebuilds the HTTP query, starting from the HttpRequestType, RequestedPath, HttpVersion and HeaderFields properties.
SendBadRequestSends a "400 - Bad Request" error to the client.

See Also

HttpClient Class | Org.Mentalis.Proxy.Http Namespace