From ab5ef34928e1676d7f0876c7efe4c90d0a57f076 Mon Sep 17 00:00:00 2001 From: c-cube Date: Tue, 3 Dec 2024 15:28:30 +0000 Subject: [PATCH] deploy: 709d1106fad8310a0e4c19752e53beac562e2f9b --- tiny_httpd/Tiny_httpd_core/Headers/index.html | 2 +- .../Content_disposition/index.html | 2 ++ .../Tiny_httpd_multipart_form_data/Private_/index.html | 2 ++ tiny_httpd/Tiny_httpd_multipart_form_data/index.html | 7 +++++++ tiny_httpd/Tiny_httpd_multipart_form_data__/index.html | 2 ++ .../index.html | 2 ++ .../Tiny_httpd_multipart_form_data__Utils_/index.html | 2 ++ tiny_httpd/index.html | 2 +- 8 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 tiny_httpd/Tiny_httpd_multipart_form_data/Content_disposition/index.html create mode 100644 tiny_httpd/Tiny_httpd_multipart_form_data/Private_/index.html create mode 100644 tiny_httpd/Tiny_httpd_multipart_form_data/index.html create mode 100644 tiny_httpd/Tiny_httpd_multipart_form_data__/index.html create mode 100644 tiny_httpd/Tiny_httpd_multipart_form_data__Content_disposition/index.html create mode 100644 tiny_httpd/Tiny_httpd_multipart_form_data__Utils_/index.html diff --git a/tiny_httpd/Tiny_httpd_core/Headers/index.html b/tiny_httpd/Tiny_httpd_core/Headers/index.html index 93590dbe..a52a60df 100644 --- a/tiny_httpd/Tiny_httpd_core/Headers/index.html +++ b/tiny_httpd/Tiny_httpd_core/Headers/index.html @@ -1,2 +1,2 @@ -Headers (tiny_httpd.Tiny_httpd_core.Headers)

Module Tiny_httpd_core.Headers

Headers

Headers are metadata associated with a request or response.

type t = (string * string) list

The header files of a request or response.

Neither the key nor the value can contain '\r' or '\n'. See https://tools.ietf.org/html/rfc7230#section-3.2

val empty : t

Empty list of headers.

  • since 0.5
val get : ?f:(string -> string) -> string -> t -> string option

get k headers looks for the header field with key k.

  • parameter f

    if provided, will transform the value before it is returned.

val get_exn : ?f:(string -> string) -> string -> t -> string
  • raises Not_found
val set : string -> string -> t -> t

set k v headers sets the key k to value v. It erases any previous entry for k

val remove : string -> t -> t

Remove the key from the headers, if present.

val contains : string -> t -> bool

Is there a header with the given key?

val pp : Stdlib.Format.formatter -> t -> unit

Pretty print the headers.

val parse_ : buf:Buf.t -> IO.Input.t -> t
+Headers (tiny_httpd.Tiny_httpd_core.Headers)

Module Tiny_httpd_core.Headers

Headers

Headers are metadata associated with a request or response.

type t = (string * string) list

The header files of a request or response.

Neither the key nor the value can contain '\r' or '\n'. See https://tools.ietf.org/html/rfc7230#section-3.2

val empty : t

Empty list of headers.

  • since 0.5
val get : ?f:(string -> string) -> string -> t -> string option

get k headers looks for the header field with key k.

  • parameter f

    if provided, will transform the value before it is returned.

val get_exn : ?f:(string -> string) -> string -> t -> string
  • raises Not_found
val set : string -> string -> t -> t

set k v headers sets the key k to value v. It erases any previous entry for k

val remove : string -> t -> t

Remove the key from the headers, if present.

val contains : string -> t -> bool

Is there a header with the given key?

val pp : Stdlib.Format.formatter -> t -> unit

Pretty print the headers.

val parse_ : buf:Buf.t -> IO.Input.t -> t

/

val parse_line_ : string -> (string * string, string) result

/

diff --git a/tiny_httpd/Tiny_httpd_multipart_form_data/Content_disposition/index.html b/tiny_httpd/Tiny_httpd_multipart_form_data/Content_disposition/index.html new file mode 100644 index 00000000..19b6781c --- /dev/null +++ b/tiny_httpd/Tiny_httpd_multipart_form_data/Content_disposition/index.html @@ -0,0 +1,2 @@ + +Content_disposition (tiny_httpd.Tiny_httpd_multipart_form_data.Content_disposition)

Module Tiny_httpd_multipart_form_data.Content_disposition

type t = {
  1. kind : string;
  2. name : string option;
  3. filename : string option;
}
val to_string : t -> string

Simple display

val parse : Tiny_httpd.Headers.t -> t option
diff --git a/tiny_httpd/Tiny_httpd_multipart_form_data/Private_/index.html b/tiny_httpd/Tiny_httpd_multipart_form_data/Private_/index.html new file mode 100644 index 00000000..cdd447a5 --- /dev/null +++ b/tiny_httpd/Tiny_httpd_multipart_form_data/Private_/index.html @@ -0,0 +1,2 @@ + +Private_ (tiny_httpd.Tiny_httpd_multipart_form_data.Private_)

Module Tiny_httpd_multipart_form_data.Private_

/

/

type chunk =
  1. | Delim
  2. | Eof
  3. | Read of int
val read_chunk_ : st -> bytes -> int -> int -> chunk
diff --git a/tiny_httpd/Tiny_httpd_multipart_form_data/index.html b/tiny_httpd/Tiny_httpd_multipart_form_data/index.html new file mode 100644 index 00000000..d34d1eb3 --- /dev/null +++ b/tiny_httpd/Tiny_httpd_multipart_form_data/index.html @@ -0,0 +1,7 @@ + +Tiny_httpd_multipart_form_data (tiny_httpd.Tiny_httpd_multipart_form_data)

Module Tiny_httpd_multipart_form_data

Streaming parser for multipart/form-data

module Content_disposition : sig ... end
type st

Parser state

val create : + ?buf_size:int -> + ?out_buf_size:int -> + boundary:string -> + Iostream.In.t -> + st
val parse_content_type : Tiny_httpd.Headers.t -> [ `boundary of string ] option

Parse headers for content-type: multipart/form-data; boundary=…

type slice = Iostream.Slice.t
type event =
  1. | Part of Tiny_httpd.Headers.t
  2. | Read of slice
  3. | End_of_input
val next : st -> event
module Private_ : sig ... end

/

diff --git a/tiny_httpd/Tiny_httpd_multipart_form_data__/index.html b/tiny_httpd/Tiny_httpd_multipart_form_data__/index.html new file mode 100644 index 00000000..cea00f84 --- /dev/null +++ b/tiny_httpd/Tiny_httpd_multipart_form_data__/index.html @@ -0,0 +1,2 @@ + +Tiny_httpd_multipart_form_data__ (tiny_httpd.Tiny_httpd_multipart_form_data__)

Module Tiny_httpd_multipart_form_data__

This module is hidden.

diff --git a/tiny_httpd/Tiny_httpd_multipart_form_data__Content_disposition/index.html b/tiny_httpd/Tiny_httpd_multipart_form_data__Content_disposition/index.html new file mode 100644 index 00000000..5e09ee3c --- /dev/null +++ b/tiny_httpd/Tiny_httpd_multipart_form_data__Content_disposition/index.html @@ -0,0 +1,2 @@ + +Tiny_httpd_multipart_form_data__Content_disposition (tiny_httpd.Tiny_httpd_multipart_form_data__Content_disposition)

Module Tiny_httpd_multipart_form_data__Content_disposition

This module is hidden.

diff --git a/tiny_httpd/Tiny_httpd_multipart_form_data__Utils_/index.html b/tiny_httpd/Tiny_httpd_multipart_form_data__Utils_/index.html new file mode 100644 index 00000000..905a9a9b --- /dev/null +++ b/tiny_httpd/Tiny_httpd_multipart_form_data__Utils_/index.html @@ -0,0 +1,2 @@ + +Tiny_httpd_multipart_form_data__Utils_ (tiny_httpd.Tiny_httpd_multipart_form_data__Utils_)

Module Tiny_httpd_multipart_form_data__Utils_

This module is hidden.

diff --git a/tiny_httpd/index.html b/tiny_httpd/index.html index 2ba977ae..e269e3ac 100644 --- a/tiny_httpd/index.html +++ b/tiny_httpd/index.html @@ -1,2 +1,2 @@ -index (tiny_httpd.index)

Package tiny_httpd

Package info

changes-files
readme-files
+index (tiny_httpd.index)

Package tiny_httpd

Package info

changes-files
readme-files