xlang v5.1 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
HttpRequest类 参考
HttpRequest 的协作图:
Collaboration graph

Public 成员函数

静态 Public 属性

详细描述

HttpRequest类,用于处理HTTP请求 定义了多种代理类型常量和请求方法

在文件 HttpRequest.x5 行定义.

构造及析构函数说明

◆ HttpRequest()

构造函数 初始化HTTP请求对象

成员函数说明

◆ available()

long available ( bool  )

◆ finalize()

void finalize ( )

◆ get()

bool get ( String  ,
int  ,
bool   
) throws IllegalArgumentException

◆ getLength()

long getLength ( )

◆ getResponseCode()

int getResponseCode ( )

◆ getResponseHeaderCount()

int getResponseHeaderCount ( )

◆ getResponseHeaderKey()

String getResponseHeaderKey ( int  )

◆ getResponseHeaderValue() [1/2]

String getResponseHeaderValue ( int  )

◆ getResponseHeaderValue() [2/2]

String getResponseHeaderValue ( String  )

◆ post()

bool post ( String  ,
int  ,
bool   
) throws IllegalArgumentException

◆ putField() [1/2]

bool putField ( String  ,
  byte[],
int  ,
int   
)

◆ putField() [2/2]

bool putField ( String  ,
  String 
)

◆ putFormField() [1/4]

bool putFormField ( String  ,
  String 
)

◆ putFormField() [2/4]

bool putFormField ( String  ,
  String,
  String,
  byte[] 
)

◆ putFormField() [3/4]

bool putFormField ( String  ,
  String,
  String,
  Stream 
)

◆ putFormField() [4/4]

bool putFormField ( String  ,
  String,
  String,
  String 
)

◆ putHeader()

bool putHeader ( String  )

◆ read()

int read ( byte  [],
int  ,
int   
)

◆ removeField()

bool removeField ( String  )

◆ removeHeader()

bool removeHeader ( String  )

◆ reset()

bool reset ( )

◆ setCookie()

bool setCookie ( String  )

◆ setCookieInputFile()

bool setCookieInputFile ( String  )

◆ setCookieOutputFile()

bool setCookieOutputFile ( String  )

◆ setProxy()

bool setProxy ( String  ,
int  ,
int  ,
  String,
  String 
)

◆ setUserAgent()

bool setUserAgent ( String  )

结构体成员变量说明

◆ PROXY_HTTP

const int PROXY_HTTP
static

在文件 HttpRequest.x8 行定义.

◆ PROXY_HTTP_10

const int PROXY_HTTP_10
static

在文件 HttpRequest.x9 行定义.

◆ PROXY_HTTP_SOCKS5_HOSTNAME

const int PROXY_HTTP_SOCKS5_HOSTNAME
static

在文件 HttpRequest.x13 行定义.

◆ PROXY_SOCKS4

const int PROXY_SOCKS4
static

在文件 HttpRequest.x10 行定义.

◆ PROXY_SOCKS4A

const int PROXY_SOCKS4A
static

在文件 HttpRequest.x12 行定义.

◆ PROXY_SOCKS5

const int PROXY_SOCKS5
static

在文件 HttpRequest.x11 行定义.