Skip to content

Commit cad4d18

Browse files
committed
Cohttp_lwt.Response is deprecated, use Cohttp.Response instead
1 parent a9e6ca2 commit cad4d18

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

modules/openapi-generator/src/main/resources/ocaml/support.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let write_json_body payload =
3535
let write_as_json_body to_json payload = write_json_body (to_json payload)
3636

3737
let handle_response resp on_success_handler =
38-
match Cohttp_lwt.Response.status resp with
38+
match Cohttp.Response.status resp with
3939
| #Cohttp.Code.success_status -> on_success_handler ()
4040
| s -> failwith ("Server responded with status " ^ Cohttp.Code.(reason_phrase_of_code (code_of_status s)))
4141

samples/client/petstore/ocaml-fake-petstore/src/support/request.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let write_json_body payload =
3535
let write_as_json_body to_json payload = write_json_body (to_json payload)
3636

3737
let handle_response resp on_success_handler =
38-
match Cohttp_lwt.Response.status resp with
38+
match Cohttp.Response.status resp with
3939
| #Cohttp.Code.success_status -> on_success_handler ()
4040
| s -> failwith ("Server responded with status " ^ Cohttp.Code.(reason_phrase_of_code (code_of_status s)))
4141

samples/client/petstore/ocaml/src/support/request.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let write_json_body payload =
3535
let write_as_json_body to_json payload = write_json_body (to_json payload)
3636

3737
let handle_response resp on_success_handler =
38-
match Cohttp_lwt.Response.status resp with
38+
match Cohttp.Response.status resp with
3939
| #Cohttp.Code.success_status -> on_success_handler ()
4040
| s -> failwith ("Server responded with status " ^ Cohttp.Code.(reason_phrase_of_code (code_of_status s)))
4141

0 commit comments

Comments
 (0)