Skip to content

class ByteArrayContent

cangjie
public open class ByteArrayContent <: HttpContent

功能:表示基于字节数组的 HTTP 内容。

父类型:

成员概览

成员功能
init(Array<Byte>)使用字节数组创建 HTTP 内容。

init(Array<Byte>)

cangjie
public init(bytes: Array<Byte>)

功能:使用字节数组创建 HTTP 内容。

参数:

  • bytes: Array<Byte> - 要作为内容体发送的字节数组。