Method | Description | |
---|---|---|
WebRequest ( |
Creates a new WebRequest
|
|
addParam ( string>.KeyValuePair |
Add a parameter to the query string of the request.
|
|
getResponse ( ) : string |
Returns the complete response body or the request.
|
|
setBody ( string body ) : void |
Sets the request body.
|
|
setQuery ( string query ) : void |
Sets the query string of the request.
|
|
setType ( string type ) : void |
Sets the type of the request.
|
|
setUrl ( string url ) : void |
Sets the Url of the request.
|
public WebRequest ( |
||
client | Client to use for all communications. | |
return | System.Collections.Generic |
public addParam ( string>.KeyValuePair |
||
kvp | string>.KeyValuePair | A key value pair to append to the query string of the request. |
return | void |
public setBody ( string body ) : void | ||
body | string | String representing the request body. |
return | void |
public setQuery ( string query ) : void | ||
query | string | Query string to append to the request. |
return | void |
public setType ( string type ) : void | ||
type | string | Type to set the request to, most likely GET, PUT, or POST. |
return | void |
public setUrl ( string url ) : void | ||
url | string | /// Full url to set the url to. /// |
return | void |