Package 

Class HttpHeaders


  • 
    public final class HttpHeaders
    
                        

    Helper to parse HTTP request/response headers.

    • Method Detail

      • get

         final String get(String name)

        Finds the last header matching the given name. In keeping with the HTTP RFC, HTTP header field names are case-insensitive. The returned string can contain a single value or a comma-separated list of values if the field supports it.

      • getAll

         final List<String> getAll(String name)

        Finds all the headers matching the given name. In keeping with the HTTP RFC, HTTP header field names are case-insensitive. Each item of the returned list can contain a single value or a comma-separated list of values if the field supports it.