http_parser_parse_url function

  1. @Native<Int Function(Pointer<Char>, Size, Int, Pointer<http_parser_url>)>(ffi.Pointer<ffi.Char>, ffi.Size, ffi.Int, ffi.Pointer<http_parser_url>)>()
int http_parser_parse_url(
  1. Pointer<Char> buf,
  2. int buflen,
  3. int is_connect,
  4. Pointer<http_parser_url> u,
)

Parse a URL; return nonzero on failure

Implementation

@ffi.Native<
  ffi.Int Function(
    ffi.Pointer<ffi.Char>,
    ffi.Size,
    ffi.Int,
    ffi.Pointer<http_parser_url>,
  )
>()
external int http_parser_parse_url(
  ffi.Pointer<ffi.Char> buf,
  int buflen,
  int is_connect,
  ffi.Pointer<http_parser_url> u,
);