$vs.http
是GuthonScript
语言中提供http对外访问算法工具类的对象,具体方法定义如下:
- $vs.http.getWithByteArrayReturn($url:string,$params:Map,$encode:string,$contextType:string,$header:Map):byte[]
- $vs.http.getWithListReturn($url:string,$params:Map,$encode:string,$contextType:string,$header:Map):List
- $vs.http.getWithMapReturn($url:string,$params:Map,$encode:string,$contextType:string,$header:Map):Map
- $vs.http.getWithStringReturn($url:string,$params:Map,$encode:string,$contextType:string,$header:Map):string
- $vs.http.postBodyWithByteArrayReturn($url:string,$buffer:object,$encode:string,$contextType:string,$header:Map):byte[]
- $vs.http.postBodyWithListReturn($url:string,$buffer:object,$encode:string,$contextType:string,$header:Map):List
- $vs.http.postBodyWithMapReturn($url:string,$buffer:object,$encode:string,$contextType:string,$header:Map):Map
- $vs.http.postBodyWithStringReturn($url:string,$buffer:object,$encode:string,$contextType:string,$header:Map):string
- $vs.http.postByteBodyWithByteArrayReturn($url:string,$buffer:object,$encode:string,$contextType:string,$header:Map):byte[]
- $vs.http.postFile($url:string,$param:Map,$fileKey:string,$fileName:string,$localFilePath:string):string
- $vs.http.postFile($url:string,$param:Map,$fileKey:string,$fileName:string,$localFilePath:string,$header:Map):string
- $vs.http.postFileBuffer($url:string,$param:Map,$fileKey:string,$fileName:string,$buffer:byte[]):string
- $vs.http.postFileBuffer($url:string,$param:Map,$fileKey:string,$fileName:string,$buffer:byte[],$header:Map):string
- $vs.http.postWithByteArrayReturn($url:string,$params:Map,$encode:string,$contextType:string,$header:Map):byte[]
- $vs.http.postWithListReturn($url:string,$params:Map,$encode:string,$contextType:string,$header:Map):List
- $vs.http.postWithMapReturn($url:string,$params:Map,$encode:string,$contextType:string,$header:Map):Map
- $vs.http.postWithStringReturn($url:string,$params:Map,$encode:string,$contextType:string,$header:Map):string
$vs.http.getWithByteArrayReturn($url:string,$params:Map,$encode:string,$contextType:string,$header:Map):byte[]
- 函数说明:
GET获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$params:Map: 请求参数
$encode:string: 请求字符编码,默认UTF8
$contextType:string: 请求头类型,默认:application/x-www-form-urlencoded
$header:Map<String,String>: 请求头信息 - 返回说明:
返回字节数组
- 函数说明:
$vs.http.getWithListReturn($url:string,$params:Map,$encode:string,$contextType:string,$header:Map):List
- 函数说明:
GET获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$params:Map: 请求参数
$encode:string: 请求字符编码,默认UTF8
$contextType:string: 请求头类型,默认:application/x-www-form-urlencoded
$header:Map<String,String>: 请求头信息 - 返回说明:
返回数组对象
- 函数说明:
$vs.http.getWithMapReturn($url:string,$params:Map,$encode:string,$contextType:string,$header:Map):Map
- 函数说明:
GET获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$params:Map: 请求参数
$encode:string: 请求字符编码,默认UTF8
$contextType:string: 请求头类型,默认:application/x-www-form-urlencoded
$header:Map<String,String>: 请求头信息 - 返回说明:
返回对象
- 函数说明:
$vs.http.getWithStringReturn($url:string,$params:Map,$encode:string,$contextType:string,$header:Map):string
- 函数说明:
GET获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$params:Map: 请求参数
$encode:string: 请求字符编码,默认UTF8
$contextType:string: 请求头类型,默认:application/x-www-form-urlencoded
$header:Map<String,String>: 请求头信息 - 返回说明:
返回的字符串
- 函数说明:
$vs.http.postBodyWithByteArrayReturn($url:string,$buffer:object,$encode:string,$contextType:string,$header:Map):byte[]
- 函数说明:
POST获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$buffer:object: 请求内容
$encode:string: 请求字符编码,默认UTF8
$contextType:string: 请求头类型,默认:application/json
$header:Map<String,String>: 请求头信息 - 返回说明:
返回字节数组
- 函数说明:
$vs.http.postBodyWithListReturn($url:string,$buffer:object,$encode:string,$contextType:string,$header:Map):List
- 函数说明:
POST获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$buffer:object: 请求内容
$encode:string: 请求字符编码,默认UTF8
$contextType:string: 请求头类型,默认:application/json
$header:Map<String,String>: 请求头信息 - 返回说明:
返回对象列表
- 函数说明:
$vs.http.postBodyWithMapReturn($url:string,$buffer:object,$encode:string,$contextType:string,$header:Map):Map
- 函数说明:
POST获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$buffer:object: 请求内容
$encode:string: 请求字符编码,默认UTF8
$contextType:string: 请求头类型,默认:application/json
$header:Map<String,String>: 请求头信息 - 返回说明:
返回对象
- 函数说明:
$vs.http.postBodyWithStringReturn($url:string,$buffer:object,$encode:string,$contextType:string,$header:Map):string
- 函数说明:
POST获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$buffer:object: 请求内容
$encode:string: 请求字符编码,默认UTF8
$contextType:string: 请求头类型,默认:application/json
$header:Map<String,String>: 请求头信息 - 返回说明:
返回字符串
- 函数说明:
$vs.http.postByteBodyWithByteArrayReturn($url:string,$buffer:object,$encode:string,$contextType:string,$header:Map):byte[]
- 函数说明:
POST获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$buffer:object: 请求内容
$encode:string: 请求字符编码
$contextType:string: 请求头类型,默认:application/json
$header:Map<String,String>: 请求头信息 - 返回说明:
返回字节数组
- 函数说明:
$vs.http.postFile($url:string,$param:Map,$fileKey:string,$fileName:string,$localFilePath:string):string
- 函数说明:
POST获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$param:object: 请求参数,可为null
$fileKey:string: 文件参数KEY值(一般需要根据对方服务器的约定)
$fileName:string: 文件名称
$localFilePath:string: 文件存储路径,如:/temp/a.xlsx,自动查找识别,顺序为:本地、私有、公有 - 返回说明:
目标服务器返回的信息字符串
- 函数说明:
$vs.http.postFile($url:string,$param:Map,$fileKey:string,$fileName:string,$localFilePath:string,$header:Map):string
- 函数说明:
POST获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$param:object: 请求参数,可为null
$fileKey:string: 文件参数KEY值(一般需要根据对方服务器的约定)
$fileName:string: 文件名称
$localFilePath:string: 文件存储路径,如:/temp/a.xlsx,自动查找识别,顺序为:本地、私有、公有
$header:Map<String,String>: 请求头信息(可缺省) - 返回说明:
目标服务器返回的信息字符串
- 函数说明:
$vs.http.postFileBuffer($url:string,$param:Map,$fileKey:string,$fileName:string,$buffer:byte[]):string
- 函数说明:
POST获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$param:object: 请求参数,可为null
$fileKey:string: 文件参数KEY值(一般需要根据对方服务器的约定)
$fileName:string: 文件名称
$buffer:byte[]: 文件内容字节数组 - 返回说明:
目标服务器返回的信息字符串
- 函数说明:
$vs.http.postFileBuffer($url:string,$param:Map,$fileKey:string,$fileName:string,$buffer:byte[],$header:Map):string
- 函数说明:
POST获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$param:object: 请求参数,可为null
$fileKey:string: 文件参数KEY值(一般需要根据对方服务器的约定)
$fileName:string: 文件名称
$buffer:byte[]: 文件内容字节数组
$header:Map<String,String>: 请求头信息(可缺省) - 返回说明:
目标服务器返回的信息字符串
- 函数说明:
$vs.http.postWithByteArrayReturn($url:string,$params:Map,$encode:string,$contextType:string,$header:Map):byte[]
- 函数说明:
GET获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$params:Map: 请求参数
$encode:string: 请求字符编码,默认UTF8
$contextType:string: 请求头类型,默认:application/x-www-form-urlencoded
$header:Map<String,String>: 请求头信息 - 返回说明:
返回字节数组
- 函数说明:
$vs.http.postWithListReturn($url:string,$params:Map,$encode:string,$contextType:string,$header:Map):List
- 函数说明:
GET获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$params:Map: 请求参数
$encode:string: 请求字符编码,默认UTF8
$contextType:string: 请求头类型,默认:application/x-www-form-urlencoded
$header:Map<String,String>: 请求头信息 - 返回说明:
返回数组对象
- 函数说明:
$vs.http.postWithMapReturn($url:string,$params:Map,$encode:string,$contextType:string,$header:Map):Map
- 函数说明:
GET获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$params:Map: 请求参数
$encode:string: 请求字符编码,默认UTF8
$contextType:string: 请求头类型,默认:application/x-www-form-urlencoded
$header:Map<String,String>: 请求头信息 - 返回说明:
返回对象
- 函数说明:
$vs.http.postWithStringReturn($url:string,$params:Map,$encode:string,$contextType:string,$header:Map):string
- 函数说明:
GET获取目标URL的数据 - 参数说明:
$url:string: 服务器全地址
$params:Map: 请求参数
$encode:string: 请求字符编码,默认UTF8
$contextType:string: 请求头类型,默认:application/x-www-form-urlencoded
$header:Map<String,String>: 请求头信息 - 返回说明:
返回的字符串
- 函数说明:
文档更新时间: 2022-02-25 15:45 作者:姜一维