Skip to content

Commit d144f41

Browse files
committed
Give access to the HttpContext
1 parent baca1fc commit d144f41

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/com/loopj/android/http/AsyncHttpClient.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,15 @@ public HttpClient getHttpClient() {
178178
return this.httpClient;
179179
}
180180

181+
/**
182+
* Get the underlying HttpContext instance. This is useful for getting
183+
* and setting fine-grained settings for requests by accessing the
184+
* context's attributes such as the CookieStore.
185+
*/
186+
public HttpContext getHttpContext() {
187+
return this.httpContext;
188+
}
189+
181190
/**
182191
* Sets an optional CookieStore to use when making requests
183192
* @param cookieStore The CookieStore implementation to use, usually an instance of {@link PersistentCookieStore}

0 commit comments

Comments
 (0)