Table of Contents

Struct RestResponse

Namespace
Kook.Net.Rest
Assembly
Kook.Net.Core.dll

表示一个 RESTful API 请求的响应。

public struct RestResponse
Inherited Members

Properties

Headers

获取响应的头部。

public readonly Dictionary<string, string?> Headers { get; }

Property Value

Dictionary<string, string>

MediaTypeHeader

获取响应的媒体类型头部。

public readonly MediaTypeHeaderValue? MediaTypeHeader { get; }

Property Value

MediaTypeHeaderValue

StatusCode

获取响应的 HTTP 状态码。

public readonly HttpStatusCode StatusCode { get; }

Property Value

HttpStatusCode

Stream

获取响应的流。

public readonly Stream Stream { get; }

Property Value

Stream