C# Class Rest4Net.Protocols.CommonWebProtocol

Inheritance: BaseProtocol
Show file Open project: acropolium/Rest4Net

Public Methods

Method Description
Execute ( Command command ) : CommandResult

Protected Methods

Method Description
CommonWebProtocol ( string host, int port ) : System
RequestBeforeBodySend ( HttpWebRequest request ) : HttpWebRequest

Private Methods

Method Description
CreateRequest ( Uri uri, Command cmd ) : HttpWebRequest
CreateUri ( Command cmd ) : Uri
ParamsToUri ( Command cmd ) : string
ToResult ( HttpWebResponse response ) : CommandResult

Method Details

CommonWebProtocol() protected method

protected CommonWebProtocol ( string host, int port ) : System
host string
port int
return System

Execute() public method

public Execute ( Command command ) : CommandResult
command Command
return CommandResult

RequestBeforeBodySend() protected method

protected RequestBeforeBodySend ( HttpWebRequest request ) : HttpWebRequest
request System.Net.HttpWebRequest
return System.Net.HttpWebRequest