package llhttp

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module LlhttpSource

llhttp bindings for OCaml

Sourcetype parser_type =
  1. | HTTP_REQUEST
  2. | HTTP_RESPONSE
  3. | HTTP_BOTH
Sourcetype llhttp_t
Sourcetype llhttp_settings_t

Initialize a parser

Sourceval execute : llhttp_t -> string -> int

Parse HTTP data

Sourceval reset : llhttp_t -> unit

Reset parser

Sourceval get_errno : llhttp_t -> int

Get error code

Sourceval on_message_begin : llhttp_t -> (unit -> int) -> unit
Sourceval on_headers_complete : llhttp_t -> (unit -> int) -> unit
Sourceval on_message_complete : llhttp_t -> (unit -> int) -> unit
Sourceval on_protocol_complete : llhttp_t -> (unit -> int) -> unit
Sourceval on_url_complete : llhttp_t -> (unit -> int) -> unit
Sourceval on_status_complete : llhttp_t -> (unit -> int) -> unit
Sourceval on_method_complete : llhttp_t -> (unit -> int) -> unit
Sourceval on_version_complete : llhttp_t -> (unit -> int) -> unit
Sourceval on_header_field_complete : llhttp_t -> (unit -> int) -> unit
Sourceval on_header_value_complete : llhttp_t -> (unit -> int) -> unit
Sourceval on_chunk_extension_name_complete : llhttp_t -> (unit -> int) -> unit
Sourceval on_chunk_extension_value_complete : llhttp_t -> (unit -> int) -> unit
Sourceval on_chunk_header : llhttp_t -> (unit -> int) -> unit
Sourceval on_chunk_complete : llhttp_t -> (unit -> int) -> unit
Sourceval on_reset : llhttp_t -> (unit -> int) -> unit
Sourceval on_protocol : llhttp_t -> (string -> int) -> unit
Sourceval on_url : llhttp_t -> (string -> int) -> unit
Sourceval on_status : llhttp_t -> (string -> int) -> unit
Sourceval on_method : llhttp_t -> (string -> int) -> unit
Sourceval on_version : llhttp_t -> (string -> int) -> unit
Sourceval on_header_field : llhttp_t -> (string -> int) -> unit
Sourceval on_header_value : llhttp_t -> (string -> int) -> unit
Sourceval on_chunk_extension_name : llhttp_t -> (string -> int) -> unit
Sourceval on_chunk_extension_value : llhttp_t -> (string -> int) -> unit
Sourceval on_body : llhttp_t -> (string -> int) -> unit