Energy Core Library
Energy.Core.Web Class Reference

Web connectivity More...

Classes

class  Rest
 Rest service class More...
 

Static Public Member Functions

static string Request (string method, string url, string body, string contentType, string acceptType, System.Text.Encoding encoding, string[] headerArray, bool detectEncodingFromByteOrderMarks)
 Perform HTTP request and return string from URL More...
 
static int Request (string method, string url, byte[] data, string contentType, string acceptType, string[] requestHeaders, out string[] responseHeaders, out byte[] responseData)
 Perform HTTP request More...
 
static Energy.Base.Http.Response Execute (Energy.Base.Http.Request request, HttpWebRequest httpWebRequest)
 Perform HTTP request More...
 
static Energy.Base.Http.Response Execute (Energy.Base.Http.Request request)
 Perform HTTP request More...
 
static Energy.Base.Http.Response Get (Energy.Base.Http.Request request)
 Perform GET and return response from URL More...
 
static Energy.Base.Http.Response Get (string url, string acceptType)
 Perform GET and return response from URL More...
 
static Energy.Base.Http.Response Get (string url)
 Perform GET and return response from URL More...
 
static Energy.Base.Http.Response Post (Energy.Base.Http.Request request)
 
static Energy.Base.Http.Response Post (string url, object body, string contentType, string[] headers, string acceptType)
 Perform POST and return response from URL More...
 
static Energy.Base.Http.Response Post (string url, object body, string contentType, string[] headers)
 Perform POST and return response from URL More...
 
static Energy.Base.Http.Response Post (string url, object body, string contentType)
 Perform POST and return response from URL More...
 
static Energy.Base.Http.Response Post (string url, object body)
 Perform POST and return response from URL More...
 
static Energy.Base.Http.Response Post (string url)
 Perform POST and return response from URL More...
 
static Energy.Base.Http.Response Put (string url, object body, string contentType, string[] headers)
 Perform PUT and return response from URL More...
 
static Energy.Base.Http.Response Put (string url)
 Perform PUT and return response from URL More...
 
static Energy.Base.Http.Response Put (string url, object body, string contentType)
 Perform PUT and return response from URL More...
 
static Energy.Base.Http.Response Put (string url, object body)
 Perform PUT and return response from URL More...
 
static Energy.Base.Http.Response Patch (Energy.Base.Http.Request request)
 Perform PATCH and return response from URL More...
 
static Energy.Base.Http.Response Patch (string url, object body, string contentType, string[] headers, string acceptType)
 Perform PATCH and return response from URL More...
 
static Energy.Base.Http.Response Patch (string url, object body, string contentType, string[] headers)
 Perform PATCH and return response from URL More...
 
static Energy.Base.Http.Response Patch (string url, object body, string contentType)
 Perform PATCH and return response from URL More...
 
static Energy.Base.Http.Response Patch (string url, object body)
 Perform PATCH and return response from URL More...
 
static Energy.Base.Http.Response Patch (string url)
 Perform PATCH and return response from URL More...
 
static Energy.Base.Http.Response Head (Energy.Base.Http.Request request)
 Perform HEAD and return response from URL More...
 
static Energy.Base.Http.Response Head (string url)
 Perform HEAD and return response from URL More...
 
static Energy.Base.Http.Response Head (string url, out string[] responseHeaders)
 Perform HEAD and return response from URL More...
 
static Energy.Base.Http.Response Delete (Energy.Base.Http.Request request)
 Perform DELETE and return response from URL More...
 
static Energy.Base.Http.Response Delete (string url)
 Perform DELETE and return response from URL More...
 
static Energy.Base.Http.Response Options (Energy.Base.Http.Request request)
 Perform OPTIONS and return response from URL More...
 
static Energy.Base.Http.Response Options (string url)
 Perform OPTIONS and return response from URL More...
 

Properties

static bool IgnoreCertificateValidation [get, set]
 

Detailed Description

Web connectivity

Member Function Documentation

◆ Delete() [1/2]

static Energy.Base.Http.Response Energy.Core.Web.Delete ( Energy.Base.Http.Request  request)
static

Perform DELETE and return response from URL

Parameters
request
Returns

◆ Delete() [2/2]

static Energy.Base.Http.Response Energy.Core.Web.Delete ( string  url)
static

Perform DELETE and return response from URL

Parameters
url
Returns

◆ Execute() [1/2]

static Energy.Base.Http.Response Energy.Core.Web.Execute ( Energy.Base.Http.Request  request,
HttpWebRequest  httpWebRequest 
)
static

Perform HTTP request

Parameters
request
httpWebRequestCustom HttpWebRequest object to use
Returns

◆ Execute() [2/2]

static Energy.Base.Http.Response Energy.Core.Web.Execute ( Energy.Base.Http.Request  request)
static

Perform HTTP request

Parameters
request
Returns

◆ Get() [1/3]

static Energy.Base.Http.Response Energy.Core.Web.Get ( Energy.Base.Http.Request  request)
static

Perform GET and return response from URL

Parameters
request
Returns

◆ Get() [2/3]

static Energy.Base.Http.Response Energy.Core.Web.Get ( string  url,
string  acceptType 
)
static

Perform GET and return response from URL

Parameters
url
acceptType
Returns

◆ Get() [3/3]

static Energy.Base.Http.Response Energy.Core.Web.Get ( string  url)
static

Perform GET and return response from URL

Parameters
url
Returns

◆ Head() [1/3]

static Energy.Base.Http.Response Energy.Core.Web.Head ( Energy.Base.Http.Request  request)
static

Perform HEAD and return response from URL

Parameters
request
Returns

◆ Head() [2/3]

static Energy.Base.Http.Response Energy.Core.Web.Head ( string  url)
static

Perform HEAD and return response from URL

Parameters
url
Returns

◆ Head() [3/3]

static Energy.Base.Http.Response Energy.Core.Web.Head ( string  url,
out string []  responseHeaders 
)
static

Perform HEAD and return response from URL

Parameters
url
responseHeaders
Returns

◆ Options() [1/2]

static Energy.Base.Http.Response Energy.Core.Web.Options ( Energy.Base.Http.Request  request)
static

Perform OPTIONS and return response from URL

Parameters
request
Returns

◆ Options() [2/2]

static Energy.Base.Http.Response Energy.Core.Web.Options ( string  url)
static

Perform OPTIONS and return response from URL

Parameters
url
Returns

◆ Patch() [1/6]

static Energy.Base.Http.Response Energy.Core.Web.Patch ( Energy.Base.Http.Request  request)
static

Perform PATCH and return response from URL

Parameters
request
Returns

◆ Patch() [2/6]

static Energy.Base.Http.Response Energy.Core.Web.Patch ( string  url,
object  body,
string  contentType,
string []  headers,
string  acceptType 
)
static

Perform PATCH and return response from URL

Parameters
url
body
contentType
headers
acceptType
Returns

◆ Patch() [3/6]

static Energy.Base.Http.Response Energy.Core.Web.Patch ( string  url,
object  body,
string  contentType,
string []  headers 
)
static

Perform PATCH and return response from URL

Parameters
url
body
contentType
headers
Returns

◆ Patch() [4/6]

static Energy.Base.Http.Response Energy.Core.Web.Patch ( string  url,
object  body,
string  contentType 
)
static

Perform PATCH and return response from URL

Parameters
url
body
contentType
Returns

◆ Patch() [5/6]

static Energy.Base.Http.Response Energy.Core.Web.Patch ( string  url,
object  body 
)
static

Perform PATCH and return response from URL

Parameters
url
body
Returns

◆ Patch() [6/6]

static Energy.Base.Http.Response Energy.Core.Web.Patch ( string  url)
static

Perform PATCH and return response from URL

Parameters
url
Returns

◆ Post() [1/6]

static Energy.Base.Http.Response Energy.Core.Web.Post ( Energy.Base.Http.Request  request)
static

◆ Post() [2/6]

static Energy.Base.Http.Response Energy.Core.Web.Post ( string  url,
object  body,
string  contentType,
string []  headers,
string  acceptType 
)
static

Perform POST and return response from URL

Parameters
url
body
contentType
headers
acceptType
Returns

◆ Post() [3/6]

static Energy.Base.Http.Response Energy.Core.Web.Post ( string  url,
object  body,
string  contentType,
string []  headers 
)
static

Perform POST and return response from URL

Parameters
url
body
contentType
headers
Returns

◆ Post() [4/6]

static Energy.Base.Http.Response Energy.Core.Web.Post ( string  url,
object  body,
string  contentType 
)
static

Perform POST and return response from URL

Parameters
url
body
contentType
Returns

◆ Post() [5/6]

static Energy.Base.Http.Response Energy.Core.Web.Post ( string  url,
object  body 
)
static

Perform POST and return response from URL

Parameters
url
body
Returns

◆ Post() [6/6]

static Energy.Base.Http.Response Energy.Core.Web.Post ( string  url)
static

Perform POST and return response from URL

Parameters
url
Returns

◆ Put() [1/4]

static Energy.Base.Http.Response Energy.Core.Web.Put ( string  url,
object  body,
string  contentType,
string []  headers 
)
static

Perform PUT and return response from URL

Parameters
url
body
contentType
headers
Returns

◆ Put() [2/4]

static Energy.Base.Http.Response Energy.Core.Web.Put ( string  url)
static

Perform PUT and return response from URL

Parameters
url
Returns

◆ Put() [3/4]

static Energy.Base.Http.Response Energy.Core.Web.Put ( string  url,
object  body,
string  contentType 
)
static

Perform PUT and return response from URL

Parameters
url
body
contentType
Returns

◆ Put() [4/4]

static Energy.Base.Http.Response Energy.Core.Web.Put ( string  url,
object  body 
)
static

Perform PUT and return response from URL

Parameters
url
body
Returns

◆ Request() [1/2]

static string Energy.Core.Web.Request ( string  method,
string  url,
string  body,
string  contentType,
string  acceptType,
System.Text.Encoding  encoding,
string []  headerArray,
bool  detectEncodingFromByteOrderMarks 
)
static

Perform HTTP request and return string from URL

Parameters
method
url
body
contentType
acceptType
encoding
headerArray
detectEncodingFromByteOrderMarks
Returns

◆ Request() [2/2]

static int Energy.Core.Web.Request ( string  method,
string  url,
byte []  data,
string  contentType,
string  acceptType,
string []  requestHeaders,
out string []  responseHeaders,
out byte []  responseData 
)
static

Perform HTTP request

Parameters
method
url
data
contentType
acceptType
requestHeaders
responseData
responseHeaders
Returns
HTTP status code

Property Documentation

◆ IgnoreCertificateValidation

bool Energy.Core.Web.IgnoreCertificateValidation
staticgetset

The documentation for this class was generated from the following file: