---
title: readHeader()
framework: applearchive
role: symbol
role_heading: Instance Method
path: applearchive/archivestreamprotocol/readheader()
---

# readHeader()

Reads the next entry header.

## Declaration

```swift
func readHeader() throws -> ArchiveHeader?
```

## Return Value

Return Value A new header instance, or nil if the operation reaches the end of the archive stream.

## See Also

### Reading and Writing Headers

- [writeHeader(_:)](applearchive/archivestreamprotocol/writeheader(_:).md)
