---
title: "nw_framer_set_output_handler(_:_:)"
framework: network
role: symbol
role_heading: Function
path: "network/nw_framer_set_output_handler(_:_:)"
---

# nw_framer_set_output_handler(_:_:)

Sets a block to handle new outbound messages.

## Declaration

```swift
func nw_framer_set_output_handler(_ framer: nw_framer_t, _ output_handler: @escaping nw_framer_output_handler_t)
```

## See Also

### Handling Output Data

- [nw_framer_output_handler_t](network/nw_framer_output_handler_t.md)
- [nw_framer_parse_output(_:_:_:_:_:)](network/nw_framer_parse_output(_:_:_:_:_:).md)
- [nw_framer_parse_completion_t](network/nw_framer_parse_completion_t.md)
- [nw_framer_write_output(_:_:_:)](network/nw_framer_write_output(_:_:_:).md)
- [nw_framer_write_output_data(_:_:)](network/nw_framer_write_output_data(_:_:).md)
- [nw_framer_write_output_no_copy(_:_:)](network/nw_framer_write_output_no_copy(_:_:).md)
- [nw_framer_pass_through_output(_:)](network/nw_framer_pass_through_output(_:).md)
