Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dump Android HttpRequest Headers To Logcat
public void handle(HttpRequest request, ... ) {
Header[] hdrs = request.getAllHeaders();
for( Header h: hdrs) {
Log.w(TAG, h.getName()+":"+h.getValue());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment