NetworkWebApiRobotBase 类 |
命名空间: HslCommunication.Core.Net
NetworkWebApiRobotBase 类型公开以下成员。
名称 | 说明 | |
---|---|---|
NetworkWebApiRobotBase(String) |
使用指定的ip地址来初始化对象 Initializes the object using the specified IP address | |
NetworkWebApiRobotBase(String, Int32) |
使用指定的ip地址及端口号来初始化对象 Initializes the object with the specified IP address and port number | |
NetworkWebApiRobotBase(String, Int32, String, String) |
使用指定的ip地址,端口号,用户名,密码来初始化对象 Initialize the object with the specified IP address, port number, username, and password |
名称 | 说明 | |
---|---|---|
AddRequestHeadersAction |
针对请求的头信息进行额外的处理
(继承自 NetworkWebApiBase。) | |
Client |
获取当前的HttpClinet的客户端 (继承自 NetworkWebApiBase。)Get the current HttpClinet client | |
DefaultContentType |
默认的内容类型,如果为空,则不进行设置操作。例如设置为 "text/plain", "application/json", "text/html" 等等。 (继承自 NetworkWebApiBase。)The default content type, if it is empty, no setting operation will be performed. For example, set to "text/plain", "application/json", "text/html" and so on. | |
Host |
获取当前的远程服务器的地址,可能是ip,也可能是网址。 (继承自 NetworkWebApiBase。)Get the address of the current remote server, which may be an IP address or a web address. | |
IpAddress |
获取或设置远程服务器的IP地址 (继承自 NetworkWebApiBase。)Gets or sets the IP address of the remote server | |
LogNet |
组件的日志工具,支持日志记录,只要实例化后,当前网络的基本信息,就以DEBUG等级进行输出 (继承自 NetworkWebApiBase。)The component's logging tool supports logging. As long as the instantiation of the basic network information, the output will be output at DEBUG | |
Password |
获取或设置当前的密码 (继承自 NetworkWebApiBase。)Get or set the current password | |
Port |
获取或设置远程服务器的端口号信息 (继承自 NetworkWebApiBase。)Gets or sets the port number information for the remote server | |
UseEncodingISO |
获取或设置是否使用ISO的编码信息,默认为 False (继承自 NetworkWebApiBase。)Get or set whether to use ISO encoding information, the default is False | |
UseHttps |
是否启用Https的协议访问,对于Https来说,端口号默认为 443 (继承自 NetworkWebApiBase。)Whether to enable Https protocol access, for Https, the port number defaults to 443 | |
UserName |
获取或设置当前的用户名 (继承自 NetworkWebApiBase。)Get or set the current username |
名称 | 说明 | |
---|---|---|
AddRequestHeaders |
针对请求的头信息进行额外的处理,可以重写用来实现一些特殊的信息添加到请求头中
(继承自 NetworkWebApiBase。) | |
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。) | |
Get |
使用GET操作从网络中获取到数据信息,地址
(继承自 NetworkWebApiBase。) | |
GetAsync |
使用GET操作从网络中获取到数据信息,地址
(继承自 NetworkWebApiBase。) | |
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。) | |
Post |
使用POST命令去提交数据内容,然后返回相关的数据信息
(继承自 NetworkWebApiBase。) | |
PostAsync |
使用POST命令去提交数据内容,然后返回相关的数据信息
(继承自 NetworkWebApiBase。) | |
Read |
读取对方信息的的数据信息,通常是针对GET的方法信息设计的。如果使用了url=开头,就表示是使用了原生的地址访问 Read the other side of the data information, usually designed for the GET method information.If you start with url=, you are using native address access | |
ReadAsync |
读取对方信息的的数据信息,通常是针对GET的方法信息设计的。如果使用了url=开头,就表示是使用了原生的地址访问 Read the other side of the data information, usually designed for the GET method information.If you start with url=, you are using native address access | |
ReadByAddress |
等待重写的额外的指令信息的支持。除了url的形式之外,还支持基于命令的数据交互 Additional instruction information waiting for rewriting is supported.In addition to the url format, command based data interaction is supported | |
ReadByAddressAsync |
等待重写的额外的指令信息的支持。除了url的形式之外,还支持基于命令的数据交互 Additional instruction information waiting for rewriting is supported.In addition to the url format, command based data interaction is supported | |
ReadString |
读取对方信息的的字符串数据信息,通常是针对GET的方法信息设计的。如果使用了url=开头,就表示是使用了原生的地址访问 The string data information that reads the other party information, usually designed for the GET method information.If you start with url=, you are using native address access | |
ReadStringAsync |
读取对方信息的的字符串数据信息,通常是针对GET的方法信息设计的。如果使用了url=开头,就表示是使用了原生的地址访问 The string data information that reads the other party information, usually designed for the GET method information.If you start with url=, you are using native address access | |
ToString | Returns a string that represents the current object. (重写 NetworkWebApiBaseToString.) | |
Write(String, Byte) |
使用POST的方式来向对方进行请求数据信息,需要使用url=开头,来表示是使用了原生的地址访问 Using POST to request data information from the other party, we need to start with url= to indicate that we are using native address access | |
Write(String, String) |
使用POST的方式来向对方进行请求数据信息,需要使用url=开头,来表示是使用了原生的地址访问 Using POST to request data information from the other party, we need to start with url= to indicate that we are using native address access | |
WriteAsync(String, Byte) |
使用POST的方式来向对方进行请求数据信息,需要使用url=开头,来表示是使用了原生的地址访问 Using POST to request data information from the other party, we need to start with url= to indicate that we are using native address access | |
WriteAsync(String, String) |
使用POST的方式来向对方进行请求数据信息,需要使用url=开头,来表示是使用了原生的地址访问 Using POST to request data information from the other party, we need to start with url= to indicate that we are using native address access |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |