Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Member group

.ctor

Declaring type: HttpMemoryContent
Module: System.Web.Http
Assembly: System.Web.dll
Source file: HttpContentTypes.rvn

Overloads / Variants

.ctor

init(memory: ReadOnlyMemory<byte>, contentType: MediaType) -> void

Source file: HttpContentTypes.rvn

Retains bytes with a validated media type; does not encode or validate the body.

Parameters

Name Type Description
memory ReadOnlyMemory<Byte> Persistent source window; no copy is made.
contentType MediaType Structured Content-Type to format when sending.

.ctor

init(memory: ReadOnlyMemory<byte>, contentType: string) -> void

Source file: HttpContentTypes.rvn

Retains bytes and an outbound Content-Type.

Parameters

Name Type Description
memory ReadOnlyMemory<Byte> Persistent source window; no copy is made.
contentType String Media type validated by the transport before sending.

.ctor

init(memory: ReadOnlyMemory<byte>) -> void

Source file: HttpContentTypes.rvn

Retains the selected bytes without taking exclusive ownership.

Parameters

Name Type Description
memory ReadOnlyMemory<Byte> Persistent source window, retained until content is released.