类的使用
com.lark.oapi.okhttp.Request.Builder
使用Request.Builder的程序包
-
com.lark.oapi.okhttp中Request.Builder的使用
修饰符和类型方法说明Adds a header withnameandvalue.Request.Builder.cacheControl(CacheControl cacheControl) Sets this request'sCache-Controlheader, replacing any cache control headers already present.Request.Builder.delete()Request.Builder.delete(RequestBody body) Request.Builder.get()Request.Builder.head()Sets the header namednametovalue.Removes all headers on this builder and addsheaders.Request.Builder.method(String method, RequestBody body) Request.newBuilder()Request.Builder.patch(RequestBody body) Request.Builder.post(RequestBody body) Request.Builder.put(RequestBody body) Request.Builder.removeHeader(String name) Removes all headers namednameon this builder.<T> Request.BuilderAttachestagto the request usingtypeas a key.Attachestagto the request usingObject.classas a key.Sets the URL target of this request.Sets the URL target of this request.