Table of Contents

Class Response

Namespace
HttpBuildR
Assembly
HttpBuildR.Response.dll

Builders for HttpResponseMessage

public static class Response
Inheritance
Response
Inherited Members

Methods

Clone(HttpResponseMessage)

Clones the HttpResponseMessage returning a new HttpResponseMessage

Result(HttpStatusCode, string?, HttpRequestMessage?, Version?)

Starts the creation of a new HttpResponseMessage from the given HttpStatusCode

WithAge(HttpResponseMessage, TimeSpan?)

Adds a age response header

WithCacheControl(HttpResponseMessage, CacheControlHeaderValue)

Adds a cache control response header

WithConnectionClose(HttpResponseMessage, bool?)

Adds a connection closed response header

WithContent(HttpResponseMessage, HttpContent)

Modifies the HttpContent

WithDate(HttpResponseMessage, DateTimeOffset?)

Adds a date response header

WithETag(HttpResponseMessage, EntityTagHeaderValue)

Adds a ETag response header

WithFormUrlContent(HttpResponseMessage, IEnumerable<KeyValuePair<string, string>>)

Modifies the request with from url encoded content

WithFormUrlContent(HttpResponseMessage, params KeyValuePair<string, string>[])

Modifies the HttpResponseMessage with FormUrlEncodedContent content

WithHeader(HttpResponseMessage, string, string?)

Adds a header to the response

WithHeader(HttpResponseMessage, string, params string[])

Adds a header to the response

WithHeaderModifications(HttpResponseMessage, Action<HttpResponseHeaders>)

Modifies the response header

WithJsonContent<T>(HttpResponseMessage, T, JsonSerializerOptions?, string)

Modifies the HttpResponseMessage with json StringContent

WithJsonContent<T>(HttpResponseMessage, T, JsonTypeInfo<T>, string)

Modifies the HttpResponseMessage with json StringContent

WithLocation(HttpResponseMessage, string)

Adds a Location response header

WithLocation(HttpResponseMessage, Uri)

Adds a Location response header

WithRetryAfter(HttpResponseMessage, DateTimeOffset)

Adds a RetryAfter response header

WithRetryAfter(HttpResponseMessage, TimeSpan)

Adds a RetryAfter response header

WithTextContent(HttpResponseMessage, string, string?)

Modifies the HttpResponseMessage with text StringContent

WithTransferEncodingChunked(HttpResponseMessage, bool?)

Adds a Transfer-Encoding response header

WithXmlContent<T>(HttpResponseMessage, T, XmlWriterSettings?, Func<XmlWriter, XmlWriter>?, string)

Modifies the HttpResponseMessage with XML StringContent