Skip to content

Commit 6ed3e32

Browse files
JacoblightningCOM8
andcommitted
Update header callback to use const
Co-authored-by: Fabian Sauter <sauter.fabian@mailbox.org>
1 parent cdd3b8d commit 6ed3e32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

advanced-usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ This includes empty lines and the `HTTP` status line. `\r\n` endings are preser
532532
The callback signature looks like this.
533533
534534
```c++
535-
bool headerCallback(std::string_view & data, intptr_t userdata);
535+
bool headerCallback(const std::string_view & data, intptr_t userdata);
536536
```
537537

538538
Provide the callback with the HeaderCallback options object. Only one header callback may be set.

0 commit comments

Comments
 (0)