Show / Hide Table of Contents

Class HttpRequestExtensions

Inheritance
object
HttpRequestExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: GitCredentialManager
Assembly: Algenta.Colectica.Repository.Client.dll
Syntax
public static class HttpRequestExtensions

Methods

AddBasicAuthenticationHeader(HttpRequestMessage, string, string)

Add a basic authentication header to the request, with the given username and password.

Declaration
public static void AddBasicAuthenticationHeader(this HttpRequestMessage request, string userName, string password)
Parameters
Type Name Description
HttpRequestMessage request
string userName
string password
Remarks

The header value is formed by computing the base64 string from the UTF-8 string "{userName}:{password}".

AddBearerAuthenticationHeader(HttpRequestMessage, string)

Add a bearer authentication header to the request, with the given bearer token.

Declaration
public static void AddBearerAuthenticationHeader(this HttpRequestMessage request, string bearerToken)
Parameters
Type Name Description
HttpRequestMessage request
string bearerToken
In this article
Back to top Generated by DocFX