public interface HttpResponse extends HttpMessage
Response = Status-Line
*((general-header
| response-header
| entity-header ) CRLF)
CRLF
[message-body]
方法
1.StatusLine getStatusLine()
获取响应中的status-line,它可以用setStatusLine方法 或构造函数来设置。
2. void setStatusCode(int code)throws IllegalStateException
使用一个新的状态码来更新status-line
3.HttpEntity getEntity()
获取响应的消息体。
4.void setReasonPhrase(String reason) throws IllegalStateException
使用新的reason phrase来更新的status-line。
5.Locale getLocale()
获取响应的locale,此local用于决定status code的reason phrase。
最后欢迎大家访问我的个人网站:1024s

被折叠的 条评论
为什么被折叠?



