Skip to content

Commit 3163d36

Browse files
author
Francois Pesce
authored
Fix README example to reflect new API (proxy-wasm#31)
1 parent 35163bb commit 3163d36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ class ExampleContext : public Context {
4141
public:
4242
explicit ExampleContext(uint32_t id, RootContext* root) : Context(id, root) {}
4343
44-
FilterHeadersStatus onRequestHeaders(uint32_t headers) override;
44+
FilterHeadersStatus onRequestHeaders(uint32_t headers, bool end_of_stream) override;
4545
void onDone() override;
4646
};
4747
static RegisterContextFactory register_ExampleContext(CONTEXT_FACTORY(ExampleContext));
4848
49-
FilterHeadersStatus ExampleContext::onRequestHeaders(uint32_t headers) {
49+
FilterHeadersStatus ExampleContext::onRequestHeaders(uint32_t headers, bool end_of_stream) {
5050
logInfo(std::string("onRequestHeaders ") + std::to_string(id()));
5151
auto path = getRequestHeader(":path");
5252
logInfo(std::string("header path ") + std::string(path->view()));

0 commit comments

Comments
 (0)