Home | History | Annotate | Download | only in okhttp

Lines Matching refs:Request

31  * A call is a request that has been prepared for execution. A call can be
32 * canceled. As this object represents a single request/response pair (stream),
42 /** The application's original request unadulterated by redirects or auth headers. */
43 Request originalRequest;
46 protected Call(OkHttpClient client, Request originalRequest) {
48 // etc.) may incorrectly be reflected in the request when it is executed.
54 * Invokes the request immediately, and blocks until the response can be
66 * @throws IOException if the request could not be executed due to
69 * accepted the request before the failure.
93 * Schedules the request to be executed at some point in the future.
96 * request will run: usually immediately unless there are several other
100 * an HTTP response or a failure exception. If you {@link #cancel} a request
118 * Cancels the request, if possible. Requests that are already complete
152 Request request() {
184 Request request = engine == null ? originalRequest : engine.getRequest();
185 responseCallback.onFailure(request, e);
210 private final Request request;
213 ApplicationInterceptorChain(int index, Request request, boolean forWebSocket) {
215 this.request = request;
223 @Override public Request request() {
224 return request;
227 @Override public Response proceed(Request request) throws IOException {
230 Interceptor.Chain chain = new ApplicationInterceptorChain(index + 1, request, forWebSocket);
243 return getResponse(request, forWebSocket);
248 * Performs the request and returns the response. May return null if this
251 Response getResponse(Request request, boolean forWebSocket) throws IOException {
252 // Copy body metadata to the appropriate request headers.
253 RequestBody body = request.body();
255 Request.Builder requestBuilder = request.newBuilder();
271 request = requestBuilder.build();
275 engine = new HttpEngine(client, request, false, false, forWebSocket, null, null, null);
290 // The attempt to interpret the request failed. Give up.
293 // The attempt to connect via a route failed. The request will not have been sent.
303 // An attempt to communicate with a server failed. The request may have been sent.
322 Request followUp = engine.followUpRequest();
343 request = followUp;
344 engine = new HttpEngine(client, request, false, false, forWebSocket, streamAllocation, null,