public class HttpRequest : HttpBasePublic Class HttpRequest
Inherits HttpBasetype HttpRequest =
class
inherit HttpBase
end| HttpRequest | HttpRequest类的构造函数。 |
| Accept |
可接受MIME类型
(继承自 HttpBase。) |
| AcceptEncoding |
允许编码
(继承自 HttpBase。) |
| Content |
获取或设置HTTP内容。
(继承自 HttpBase。) |
| ContentLength |
内容长度
(继承自 HttpBase。) |
| ContentStatus |
内容填充完成状态
(继承自 HttpBase。) |
| ContentType |
内容类型
(继承自 HttpBase。) |
| Headers |
请求头集合
(继承自 HttpBase。) |
| IsServer |
是否在Server端工作
(重写 HttpBaseIsServer) |
| KeepAlive |
保持连接。
一般的,当是http1.1时,如果没有显式的Connection: close,即返回。当是http1.0时,如果没有显式的Connection: Keep-Alive,即返回。 |
| Method | HTTP请求方式。 |
| Protocols |
协议名称,默认HTTP
(继承自 HttpBase。) |
| ProtocolVersion |
HTTP协议版本,默认1.1
(继承自 HttpBase。) |
| Query | url参数 |
| RelativeURL | 相对路径(不含参数) |
| URL | Url全地址,包含参数 |
| Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) |
| GetContentAsync |
获取一次性内容。
(重写 HttpBaseGetContentAsync(CancellationToken)) |
| GetHashCode | Serves as the default hash function. (继承自 Object。) |
| GetType | Gets the Type of the current instance. (继承自 Object。) |
| MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) |
| ReadAsync |
异步读取HTTP块段的内容。
(重写 HttpBaseReadAsync(CancellationToken)) |
| ReadCopyToAsync(Stream, CancellationToken) |
异步读取并复制流数据
(继承自 HttpBase。) |
| ReadCopyToAsync(Stream, HttpFlowOperator) |
异步读取并复制流数据
(继承自 HttpBase。) |
| ReadRequestLine |
读取请求行。
(重写 HttpBaseReadRequestLine(ReadOnlySpanByte)) |
| Reset | (重写 HttpBaseReset) |
| SetProxyHost | 设置代理Host |
| ToString | Returns a string that represents the current object. (继承自 Object。) |
| GetBodyAsync |
异步获取utf8编码的 HTTP 请求的主体内容。
(由 HttpExtensions 定义。) |
| GetBodyAsync |
异步获取 HTTP 请求的主体内容。
(由 HttpExtensions 定义。) |
| GetBoundary |
当数据类型为multipart/form-data时,获取boundary
(由 HttpExtensions 定义。) |
| Map |
将源对象的属性映射到目标对象的属性中。
(由 Mapper 定义。) |
| Map |
将源对象映射到目标类型的实例。
(由 Mapper 定义。) |
| MapTTarget |
将源对象映射到指定目标类型的新实例。
(由 Mapper 定义。) |
| ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |