ReadonlyMemoryHttpContent 构造函数
命名空间: TouchSocket.Http程序集: TouchSocket.Http (在 TouchSocket.Http.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
public ReadonlyMemoryHttpContent(
ReadOnlyMemory<byte> memory,
string contentType = null
)
Public Sub New (
memory As ReadOnlyMemory(Of Byte),
Optional contentType As String = Nothing
)
new :
memory : ReadOnlyMemory<byte> *
?contentType : string
(* Defaults:
let _contentType = defaultArg contentType null
*)
-> ReadonlyMemoryHttpContent
参数
- memory ReadOnlyMemoryByte
- 要封装的只读内存。
- contentType String (Optional)
- 内容类型