Java Code Examples for com.mashape.unirest.http.Unirest#clearDefaultHeaders()

The following examples show how to use com.mashape.unirest.http.Unirest#clearDefaultHeaders() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Requester.java    From wandora with GNU General Public License v3.0 5 votes vote down vote up
public Requester() {
    requestQueue = new ArrayList();
    runCounter = 0;
    failCounter = 0;
    Unirest.clearDefaultHeaders();
    setUserAgent();
}
 
Example 2
Source File: HttpClientLiveTest.java    From tutorials with MIT License 4 votes vote down vote up
@AfterClass
public static void tearDown() throws IOException {
    Unirest.clearDefaultHeaders();
    Unirest.shutdown();
}