Search in sources :

Example 1 with BasicHeader

use of org.openecard.apache.http.message.BasicHeader in project open-ecard by ecsec.

the class StreamHttpClientConnection method sendRequestHeader.

@Override
public void sendRequestHeader(HttpRequest request) throws HttpException, IOException {
    assertOpen();
    request.setHeader(new BasicHeader("User-Agent", AppVersion.getName() + "/" + AppVersion.getVersion()));
    this.requestWriter.write(request);
    incrementRequestCount();
}
Also used : BasicHeader(org.openecard.apache.http.message.BasicHeader)

Aggregations

BasicHeader (org.openecard.apache.http.message.BasicHeader)1