Home
last modified time | relevance | path

Searched refs:httpRequest (Results 1 – 11 of 11) sorted by relevance

/external/volley/src/test/java/com/android/volley/toolbox/
DHttpClientStackTest.java45 HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null); in createDeprecatedGetRequest() local
46 assertTrue(httpRequest instanceof HttpGet); in createDeprecatedGetRequest()
53 HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null); in createDeprecatedPostRequest() local
54 assertTrue(httpRequest instanceof HttpPost); in createDeprecatedPostRequest()
61 HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null); in createGetRequest() local
62 assertTrue(httpRequest instanceof HttpGet); in createGetRequest()
69 HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null); in createPostRequest() local
70 assertTrue(httpRequest instanceof HttpPost); in createPostRequest()
77 HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null); in createPostRequestWithBody() local
78 assertTrue(httpRequest instanceof HttpPost); in createPostRequestWithBody()
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/
DHttpRequestInfo.java9 HttpRequest httpRequest; field in HttpRequestInfo
14 …public HttpRequestInfo(HttpRequest httpRequest, HttpHost httpHost, HttpContext httpContext, Reques… in HttpRequestInfo() argument
15 this.httpRequest = httpRequest; in HttpRequestInfo()
22 return httpRequest; in getHttpRequest()
DFakeHttpLayer.java92 private HttpResponse findResponse(HttpRequest httpRequest) throws HttpException, IOException { in findResponse() argument
94 return pendingHttpResponses.remove(0).getResponse(httpRequest); in findResponse()
98 if (httpResponseRule.matches(httpRequest)) { in findResponse()
106 …public HttpResponse emulateRequest(HttpHost httpHost, HttpRequest httpRequest, HttpContext httpCon… in emulateRequest() argument
107 HttpResponse httpResponse = findResponse(httpRequest); in emulateRequest()
111httpRequest.getRequestLine().getMethod() + " " + httpRequest.getRequestLine().getUri()); in emulateRequest()
122 … httpRequestInfos.add(new HttpRequestInfo(httpRequest, httpHost, httpContext, requestDirector)); in emulateRequest()
145 if (rule.matches(requestInfo.httpRequest)) { in hasRequestMatchingRule()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowAndroidHttpClient.java61 …public HttpResponse execute(HttpHost httpHost, HttpRequest httpRequest) throws IOException, Client… in execute() argument
62 return httpClient.execute(httpHost, httpRequest); in execute()
66 …public HttpResponse execute(HttpHost httpHost, HttpRequest httpRequest, HttpContext httpContext) t… in execute() argument
67 return httpClient.execute(httpHost, httpRequest, httpContext); in execute()
81 …public <T> T execute(HttpHost httpHost, HttpRequest httpRequest, ResponseHandler<? extends T> resp… in execute() argument
82 return httpClient.execute(httpHost, httpRequest, responseHandler); in execute()
86 …public <T> T execute(HttpHost httpHost, HttpRequest httpRequest, ResponseHandler<? extends T> resp… in execute() argument
87 return httpClient.execute(httpHost, httpRequest, responseHandler, httpContext); in execute()
DShadowDefaultRequestDirector.java147 …public HttpResponse execute(HttpHost httpHost, HttpRequest httpRequest, HttpContext httpContext) t… in execute() argument
149 …return Robolectric.getFakeHttpLayer().emulateRequest(httpHost, httpRequest, httpContext, realObjec… in execute()
151 return redirector.execute(httpHost, httpRequest, httpContext); in execute()
/external/volley/src/main/java/com/android/volley/toolbox/
DHttpClientStack.java59 private static void addHeaders(HttpUriRequest httpRequest, Map<String, String> headers) { in addHeaders() argument
61 httpRequest.setHeader(key, headers.get(key)); in addHeaders()
77 HttpUriRequest httpRequest = createHttpRequest(request, additionalHeaders); in performRequest() local
78 addHeaders(httpRequest, additionalHeaders); in performRequest()
79 addHeaders(httpRequest, request.getHeaders()); in performRequest()
80 onPrepareRequest(httpRequest); in performRequest()
81 HttpParams httpParams = httpRequest.getParams(); in performRequest()
87 return mClient.execute(httpRequest); in performRequest()
146 private static void setEntityIfNonEmptyBody(HttpEntityEnclosingRequestBase httpRequest, in setEntityIfNonEmptyBody() argument
151 httpRequest.setEntity(entity); in setEntityIfNonEmptyBody()
/external/oauth/core/src/main/java/net/oauth/client/httpclient4/
DHttpClient4.java68 HttpRequestBase httpRequest; in execute() local
79 httpRequest = entityEnclosingMethod; in execute()
81 httpRequest = new HttpDelete(url); in execute()
83 httpRequest = new HttpGet(url); in execute()
86 httpRequest.addHeader(header.getKey(), header.getValue()); in execute()
88 HttpClient client = clientPool.getHttpClient(new URL(httpRequest.getURI().toString())); in execute()
90 HttpResponse httpResponse = client.execute(httpRequest); in execute()
91 … return new HttpMethodResponse(httpRequest, httpResponse, excerpt, request.getContentCharset()); in execute()
DHttpMethodResponse.java55 this.httpRequest = request; in HttpMethodResponse()
62 private final HttpRequestBase httpRequest; field in HttpMethodResponse
97 StringBuilder request = new StringBuilder(httpRequest.getMethod()); in dump()
98 request.append(" ").append(httpRequest.getURI().getPath()); in dump()
99 String query = httpRequest.getURI().getQuery(); in dump()
104 for (Header header : httpRequest.getAllHeaders()) { in dump()
107 if (httpRequest instanceof HttpEntityEnclosingRequest) { in dump()
108 HttpEntityEnclosingRequest r = (HttpEntityEnclosingRequest) httpRequest; in dump()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DHttpFacade.java101 private HttpURLConnection httpRequest(String url) throws IOException { in httpRequest() method in HttpFacade
134 HttpURLConnection urlConnection = httpRequest(url); in httpDownloadFile()
184 urlConnection = httpRequest(url); in httpPing()
194 HttpURLConnection urlConnection = httpRequest(url); in httpRequestString()
/external/clang/test/SemaObjC/
Dcontinuation-class-property.m49 @property (nonatomic, readonly, assign) struct evhttp_request *httpRequest; property
59 @property (nonatomic, readwrite, assign) struct evhttp_request *httpRequest;
/external/oauth/core/src/main/java/net/oauth/client/
DOAuthClient.java314 final HttpMessage httpRequest = new HttpMessage(request.method, new URL(url), body); in invoke() local
315 httpRequest.headers.addAll(headers); in invoke()
316 HttpResponseMessage httpResponse = http.execute(httpRequest); in invoke()