C# Class WebmasterToolsApi.Http.HttpClient

Exibir arquivo Open project: alexandernyquist/WebmasterToolsApi

Public Properties

Property Type Description
Debug bool

Public Methods

Method Description
Get ( string url, object>.Dictionary headers = null ) : string

Issues a HTTP GET

Post ( string url, object>.Dictionary parameters ) : string

Issues a HTTP POST

Protected Methods

Method Description
GetPostData ( object>.Dictionary values ) : string

Creates a post data string

Method Details

Get() public static method

Issues a HTTP GET
public static Get ( string url, object>.Dictionary headers = null ) : string
url string The url
headers object>.Dictionary Optional headers
return string

GetPostData() protected static method

Creates a post data string
protected static GetPostData ( object>.Dictionary values ) : string
values object>.Dictionary The values to convert
return string

Post() public static method

Issues a HTTP POST
public static Post ( string url, object>.Dictionary parameters ) : string
url string The url
parameters object>.Dictionary Parameters to send as post data
return string

Property Details

Debug public_oe static_oe property

Turn debug on/off
public static bool Debug
return bool