public abstract class HttpBase : IRequestInfoPublic MustInherit Class HttpBase
Implements IRequestInfo[<AbstractClassAttribute>]
type HttpBase =
class
interface IRequestInfo
end| HttpBase | 初始化 HttpBase 类的一个新实例 |
| Accept | 可接受MIME类型 |
| AcceptEncoding | 允许编码 |
| Content | 获取或设置HTTP内容。 |
| ContentLength | 内容长度 |
| ContentStatus | 内容填充完成状态 |
| ContentType | 内容类型 |
| Headers | 请求头集合 |
| IsServer | 是否在Server端工作 |
| Protocols | 协议名称,默认HTTP |
| ProtocolVersion | HTTP协议版本,默认1.1 |
| 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 | 获取一次性内容。 |
| 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块段的内容。 |
| ReadCopyToAsync(Stream, CancellationToken) | 异步读取并复制流数据 |
| ReadCopyToAsync(Stream, HttpFlowOperator) | 异步读取并复制流数据 |
| ReadRequestLine | 读取请求行。 |
| Reset | |
| ToString | Returns a string that represents the current object. (继承自 Object。) |
| MaxCacheSize | 定义缓存的最大大小,这里设置为100MB。 这个值是根据预期的内存使用量和性能需求确定的。 过大的缓存可能会导致内存使用率过高,影响系统的其他部分。 过小的缓存则可能无法有效减少对外部资源的访问,降低程序的运行效率。 |
| ServerVersion | 服务器版本 |
| GetBodyAsync |
异步获取utf8编码的 HTTP 请求的主体内容。
(由 HttpExtensions 定义。) |
| GetBodyAsync |
异步获取 HTTP 请求的主体内容。
(由 HttpExtensions 定义。) |
| GetBoundary |
当数据类型为multipart/form-data时,获取boundary
(由 HttpExtensions 定义。) |
| Map |
将源对象的属性映射到目标对象的属性中。
(由 Mapper 定义。) |
| Map |
将源对象映射到目标类型的实例。
(由 Mapper 定义。) |
| MapTTarget |
将源对象映射到指定目标类型的新实例。
(由 Mapper 定义。) |
| ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |