In the context of HTTP requests and responses, what is the primary purpose of a header?
A. To store user credentials for authentication.
B. To specify the type and format of data being sent or received.
C. To handle real-time data streaming and synchronization.
D. To cache static content for faster loading times.