类 Response.Builder
java.lang.Object
com.lark.oapi.okhttp.Response.Builder
- 封闭类:
Response
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Adds a header withnameandvalue.body(ResponseBody body) build()cacheResponse(Response cacheResponse) code(int code) Sets the header namednametovalue.Removes all headers on this builder and addsheaders.networkResponse(Response networkResponse) priorResponse(Response priorResponse) receivedResponseAtMillis(long receivedResponseAtMillis) removeHeader(String name) Removes all headers namednameon this builder.sentRequestAtMillis(long sentRequestAtMillis)
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
request
-
protocol
-
code
-
message
-
handshake
-
header
Sets the header namednametovalue. If this request already has any headers with that name, they are all replaced. -
addHeader
Adds a header withnameandvalue. Prefer this method for multiply-valued headers like "Set-Cookie". -
removeHeader
Removes all headers namednameon this builder. -
headers
Removes all headers on this builder and addsheaders. -
body
-
networkResponse
-
cacheResponse
-
priorResponse
-
sentRequestAtMillis
-
receivedResponseAtMillis
-
build
-