public interface HttpHeaders. See HTTP/1.1 … Interface HttpHeaders. Read blogpost by our CEO. All methods throw IllegalStateException if called outside the scope of a request (e.g. HttpHeaders headers = new HttpHeaders();... headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED); We just raised our Series A to enable all developers write better code faster with AI! Code Index Add Codota to your IDE (free) Best Java code snippets using … Fields ; Modifier and Type Field and Description; static String: ACCEPT. Since: 1.0 Author: Paul Sandoz, Marc Hadley See Also: Context; Field Summary. HttpHeaders. An injectable interface that provides access to HTTP header information. from a provider constructor).