Use the headers() method in HttpRequest. Frame the concept in practical terms so you can explain it during interview discussion.
You can add headers to an HttpRequest using the headers() method in the HttpRequest builder. This is useful for setting authorization tokens or content types. For example: `HttpRequest request = HttpRequest.newBuilder().uri(URI.create("http://example.com")).headers("Authorization", "Bearer token").GET().build();`.
Additional Notes
How can you add headers to an HttpRequest in Java?