public class Cookie extends Object implements HttpReqRespInterceptor
限定符和类型 | 方法和说明 |
---|---|
void |
afterConnect(Request request,
HttpURLConnection conn) |
void |
afterResponse(Request request,
HttpURLConnection conn,
Response response) |
void |
beforeConnect(Request request) |
String |
get(String name) |
void |
parse(String str) |
Cookie |
remove(String name) |
Cookie |
set(String name,
String value) |
void |
setDebug(boolean debug) |
int |
size() |
String |
toJson() |
String |
toString() |
public Cookie()
public Cookie(String s)
public void parse(String str)
public void beforeConnect(Request request)
beforeConnect
在接口中 HttpReqRespInterceptor
public void afterConnect(Request request, HttpURLConnection conn)
afterConnect
在接口中 HttpReqRespInterceptor
public void afterResponse(Request request, HttpURLConnection conn, Response response)
afterResponse
在接口中 HttpReqRespInterceptor
public String toJson()
public int size()
public void setDebug(boolean debug)
Copyright © 2017. All rights reserved.