C# Class Pomona.Common.Web.HttpMessageExtensions

Show file Open project: Pomona/Pomona

Public Methods

Method Description
Clone ( this source ) : Task
Clone ( this source ) : Task
Clone ( this source, bool cloneReferencedRequestMessage = false ) : Task
CopyHeadersFrom ( this destination, Pomona.Common.Web.HttpHeaders source ) : void
ToStringWithContent ( this request ) : string
ToStringWithContentAsync ( this request ) : Task

Private Methods

Method Description
WriteContentHeadersAndBody ( StringWriter sw, HttpContent content ) : System.Threading.Tasks.Task
WriteHeaders ( StringWriter sw, Pomona.Common.Web.HttpHeaders headers ) : void

Method Details

Clone() public static method

public static Clone ( this source ) : Task
source this
return Task

Clone() public static method

public static Clone ( this source ) : Task
source this
return Task

Clone() public static method

public static Clone ( this source, bool cloneReferencedRequestMessage = false ) : Task
source this
cloneReferencedRequestMessage bool
return Task

CopyHeadersFrom() public static method

public static CopyHeadersFrom ( this destination, Pomona.Common.Web.HttpHeaders source ) : void
destination this
source Pomona.Common.Web.HttpHeaders
return void

ToStringWithContent() public static method

public static ToStringWithContent ( this request ) : string
request this
return string

ToStringWithContentAsync() public static method

public static ToStringWithContentAsync ( this request ) : Task
request this
return Task