Class HttpUtils
Utility class for handling HTTP-related operations, such as adding basic authentication headers to HTTP requests.
public static class HttpUtils
- Inheritance
-
HttpUtils
- Inherited Members
Methods
AddBasicAuth(string, string, HttpRequestHeaders)
Adds basic authentication to the provided HttpRequestHeaders.
public static HttpRequestHeaders AddBasicAuth(string username, string password, HttpRequestHeaders headers)
Parameters
usernamestringThe username for basic authentication.
passwordstringThe password for basic authentication.
headersHttpRequestHeadersThe HttpRequestHeaders to which the authentication will be added.
Returns
- HttpRequestHeaders
The HttpRequestHeaders with the added basic authentication.