---
title: URL.AsyncBytes
framework: foundation
role: symbol
role_heading: Structure
path: foundation/url/asyncbytes
---

# URL.AsyncBytes

An asynchronous sequence of bytes loaded from the URL.

## Declaration

```swift
struct AsyncBytes
```

## Topics

### Creating an iterator

- [makeAsyncIterator()](foundation/url/asyncbytes/makeasynciterator().md)
- [URL.AsyncBytes.AsyncIterator](foundation/url/asyncbytes/asynciterator.md)

### Adapting Textual Sequences

- [lines](foundation/url/lines.md)

### Supporting Types

- [URL.AsyncBytes.Element](foundation/url/asyncbytes/element.md)

## Relationships

### Conforms To

- [AsyncSequence](swift/asyncsequence.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Loading URL contents asynchronously

- [resourceBytes](foundation/url/resourcebytes.md)
- [lines](foundation/url/lines.md)
