Structured headers

Similar to the existing headers method but returns a nested structure