? my $ctx = $main::context; ? $_mt->wrapper_file("wrapper.mt", "Frequently Asked Questions")->(sub {
Aside from the standalone server, H2O can also be used as a software library.
The name of the library is libh2o
.
To build H2O as a library you will need to install the following dependencies:
PKG_CONFIG_PATH
configuration variable can be used for specifying their paths. For example, the following snippet builds libh2o
using the libraries installed in their respective paths.
= $ctx->{code}->(<< 'EOT')
% PKG_CONFIG_PATH=/usr/local/libuv-1.4/lib/pkgconfig:/usr/local/openssl-1.0.2a/lib/pkgconfig cmake .
% make libh2o
EOT
?>
For more information, please refer to the GitHub issues tagged as libh2o.