package ocaml_openapi_generator

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

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.