/src/zeek/src/analyzer/protocol/http/Plugin.cc
Line | Count | Source |
1 | | // See the file "COPYING" in the main distribution directory for copyright. |
2 | | |
3 | | #include "zeek/plugin/Plugin.h" |
4 | | |
5 | | #include "zeek/analyzer/Component.h" |
6 | | #include "zeek/analyzer/protocol/http/HTTP.h" |
7 | | |
8 | | namespace zeek::plugin::detail::Zeek_HTTP { |
9 | | |
10 | | class Plugin : public zeek::plugin::Plugin { |
11 | | public: |
12 | 66 | zeek::plugin::Configuration Configure() override { |
13 | 66 | AddComponent(new zeek::analyzer::Component("HTTP", zeek::analyzer::http::HTTP_Analyzer::Instantiate)); |
14 | | |
15 | 66 | zeek::plugin::Configuration config; |
16 | 66 | config.name = "Zeek::HTTP"; |
17 | 66 | config.description = "HTTP analyzer"; |
18 | 66 | return config; |
19 | 66 | } |
20 | | } plugin; |
21 | | |
22 | | } // namespace zeek::plugin::detail::Zeek_HTTP |