Skip to content

Most visited

Recently visited


RequestDefaultHeaders | Android Developers

to top
Android APIs
public class


extends Object
implements HttpRequestInterceptor
   ↳ org.apache.http.client.protocol.RequestDefaultHeaders

Class Overview

Request interceptor that adds default request headers.


Public Constructors
Public Methods
void process(HttpRequest request, HttpContext context)
Processes a request.
Inherited Methods
From class java.lang.Object
From interface org.apache.http.HttpRequestInterceptor

Public Constructors

public RequestDefaultHeaders ()

Added in API level 1

Public Methods

public void process (HttpRequest request, HttpContext context)

Added in API level 1

Processes a request. On the client side, this step is performed before the request is sent to the server. On the server side, this step is performed on incoming messages before the message body is evaluated.

request the request to preprocess
context the context for the request
This site uses cookies to store your preferences for site-specific language and display options.


This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.