docs: def _head(self, client_kwargs):
          """
          Returns object or bucket HTTP header.
  
          Args:
              client_kwargs (dict): Client arguments.
  
          Returns:
              dict: HTTP header.
          """
          with _handle_client_error():
              # Object
              if 'Key' in client_kwargs:
                  header = self.client.head_object(**client_kwargs)
  
              # Bucket
              else:
                  header = self.client.head_bucket(**client_kwargs)
  
          # Clean up HTTP request information
          for key in ('AcceptRanges', 'ResponseMetadata'):
              header.pop(key, None)
          return header