http_parser_version function

  1. @Native<UnsignedLong Function()>()>()
int http_parser_version()

Returns the library version. Bits 16-23 contain the major version number, bits 8-15 the minor version number and bits 0-7 the patch level. Usage example:

unsigned long version = http_parser_version(); unsigned major = (version >> 16) & 255; unsigned minor = (version >> 8) & 255; unsigned patch = version & 255; printf("http_parser v%u.%u.%u\n", major, minor, patch);

Implementation

@ffi.Native<ffi.UnsignedLong Function()>()
external int http_parser_version();