ReadonlyMemoryHttpContent 构造函数
命名空间: TouchSocket.Http程序集: TouchSocket.Http (在 TouchSocket.Http.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
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)
- 内容类型