public interface IHttpClient : IHttpSession,
ITcpSession, IClient, IDependencyObject, IDisposableObject, IDisposable,
ILoggerObject, IResolverConfigObject, IConfigObject, IPluginObject, IResolverObject,
IOnlineClient, IClosableClient, ISetupConfigObject, ITcpConnectableClient, IConnectableClient
Public Interface IHttpClient
Inherits IHttpSession, ITcpSession, IClient, IDependencyObject,
IDisposableObject, IDisposable, ILoggerObject, IResolverConfigObject, IConfigObject,
IPluginObject, IResolverObject, IOnlineClient, IClosableClient, ISetupConfigObject,
ITcpConnectableClient, IConnectableClient
type IHttpClient =
interface
interface IHttpSession
interface ITcpSession
interface IClient
interface IDependencyObject
interface IDisposableObject
interface IDisposable
interface ILoggerObject
interface IResolverConfigObject
interface IConfigObject
interface IPluginObject
interface IResolverObject
interface IOnlineClient
interface IClosableClient
interface ISetupConfigObject
interface ITcpConnectableClient
interface IConnectableClient
end
Config |
配置项
(继承自 IConfigObject。) |
DataHandlingAdapter |
数据处理适配器
(继承自 ITcpSession。) |
DisposedValue |
标识该对象是否已被释放
(继承自 IDisposableObject。) |
IP |
IP地址
(继承自 ITcpSession。) |
IsClient |
表示是否为客户端终端。当为时,表示是客户端。否则为服务器通讯终端。
(继承自 IClient。) |
LastReceivedTime |
最后一次接收到数据的时间
(继承自 IClient。) |
LastSentTime |
最后一次发送数据的时间
(继承自 IClient。) |
Logger |
日志记录器
(继承自 ILoggerObject。) |
MainSocket |
主通信器
(继承自 ITcpSession。) |
Online |
判断是否在线
(继承自 IOnlineClient。) |
PluginManager |
插件管理器
(继承自 IPluginObject。) |
Port |
端口号
(继承自 ITcpSession。) |
Protocol |
终端协议
(继承自 IClient。) |
RemoteIPHost |
获取远程主机信息。
(继承自 ITcpConnectableClient。) |
Resolver |
获取解析器实例。
(继承自 IResolverObject。) |
UseSsl |
使用Ssl加密
(继承自 ITcpSession。) |
CloseAsync |
关闭客户端。
(继承自 IClosableClient。) |
ConnectAsync |
异步连接
(继承自 IConnectableClient。) |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (继承自 IDisposable。) |
GetValueTValue |
获取依赖注入的值,当没有注入时,会返回默认行为的值。
(继承自 IDependencyObject。) |
HasValueTValue |
判断在当前对象中是否有已设置的属性值。
(继承自 IDependencyObject。) |
RemoveValueTValue |
移除属性值。
(继承自 IDependencyObject。) |
RequestAsync | 发起请求 |
RequestContentAsync | 发起请求,并获取数据体 |
SetupAsync |
异步配置设置项
(继承自 ISetupConfigObject。) |
SetValueTValue |
设置依赖注入的值,如果值已经存在,将被覆盖。
(继承自 IDependencyObject。) |
TryGetValueTValue |
尝试获取依赖注入的值,当没有注入时,会返回。
(继承自 IDependencyObject。) |
TryRemoveValueTValue |
尝试重置属性值,如果没有这个值,则返回。
(继承自 IDependencyObject。) |
CloseWithTLV |
使用TLV格式关闭TCP会话
(由 TLVClientExtensions 定义。) |
CloseWithTLVAsync |
发送TLV的Close报文,然后关闭当前客户端
(由 TLVClientExtensions 定义。) |
Connect |
同步执行连接操作。
(由 ClientExtension 定义。) |
ConnectAsync |
异步连接
(由 ClientExtension 定义。) |
GetByteArrayAsync |
异步获取URL的字节数组表示形式。
(由 HttpClientExtension 定义。) |
GetFileAsync |
异步获取HTTP请求的文件内容
(由 HttpClientExtension 定义。) |
GetFileAsync |
异步获取URL指定的文件,并将其内容写入提供的流中。
(由 HttpClientExtension 定义。) |
GetStringAsync |
异步获取指定URL的字符串内容。
(由 HttpClientExtension 定义。) |
PingWithTLV |
发送Tag为Ping的报文,然后等待Pong回应。
当适配器不是TLVDataHandlingAdapter时,会抛出异常。 (由 TLVClientExtensions 定义。) |
SafeDispose |
安全性释放(不用判断对象是否为空)。不会抛出任何异常。
内部会判断DisposedValue的值,如果为,则不会再执行Dispose。 (由 SystemExtension 定义。) |
SafeDispose |
安全性释放(不用判断对象是否为空)。不会抛出任何异常。
(由 SystemExtension 定义。) |
Setup |
同步配置方法。
使用给定的配置对象进行设置。
(由 SetupConfigObjectExtension 定义。) |
TryConnect |
同步执行连接操作。不会抛出异常。
(由 ClientExtension 定义。) |
TryConnectAsync |
尝试连接。不会抛出异常。
(由 ClientExtension 定义。) |