public static String toHeaderElement ( String name , String value ) { return OAuth . percentEncode ( name ) + "=\"" + OAuth . percentEncode ( value ) + "\"" ; }
Helper method to concatenate a parameter and its value to a pair that can be used in an HTTP header . This method percent encodes both parts before joining them .