package ocaml_openapi_generator

  1. Overview
  2. Docs
An OpenAPI 3 to OCaml client generator.

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=a5018999737b39c7d83a597bbf4c3ae0fc6899f3553e809d1abcb96bf2211d6e

doc/src/ocaml_openapi_generator.openapi_runtime/client.ml.html

Source file client.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
open! Core
open Async

module Method = struct
  type t =
    [ `GET
    | `HEAD
    | `POST
    | `PUT
    | `DELETE
    | `CONNECT
    | `OPTIONS
    | `TRACE
    | `Other of string
    ]
end

type 'response t =
  { base_url : string
  ; headers : (string * string) list
  ; secure : bool
  ; make_request :
      ?body:string -> 'response t -> Uri.t -> Method.t -> 'response Deferred.Or_error.t
  ; response_to_string : 'response -> string
  }
[@@deriving fields ~getters]
OCaml

Innovation. Community. Security.