Class WebClientHelper
- Namespace
- SunamoHttp
- Assembly
- SunamoHttp.dll
Helper class for WebClient operations
public class WebClientHelper
- Inheritance
-
WebClientHelper
- Inherited Members
- Extension Methods
Methods
GetResponseBytes(string)
Gets the response bytes from the specified address
public static byte[] GetResponseBytes(string address)
Parameters
addressstringThe URL address
Returns
- byte[]
The response as byte array
GetResponseStream(string)
Gets the response stream from the specified address
public static Stream GetResponseStream(string address)
Parameters
addressstringThe URL address
Returns
- Stream
The response stream
GetResponseText(string, HttpRequestData?)
Gets the response text from the specified address
public static string GetResponseText(string address, HttpRequestData? httpRequestData)
Parameters
addressstringThe URL address
httpRequestDataHttpRequestDataThe HTTP request configuration data
Returns
- string
The response text with spaces normalized