HomeKit Accessory Protocol (HAP) for OCaml
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(lint): remove redundant function prefixes (E331)

Strip get_/make_/find_/create_ from 138 function definitions and all
call sites across ocaml-pds, ocaml-pid1, ocaml-precommit,
ocaml-publicsuffix, ocaml-qemu, ocaml-requests, ocaml-retry, and
ocaml-rpmsg. Use Module.v for constructors per the E331 convention.

+1 -1
+1 -1
lib/hap.ml
··· 255 255 let url = Fmt.str "http://%s:%d%s" ip port path in 256 256 let headers = Requests.Headers.(empty |> set_string "Content-Type" ct) in 257 257 let body = Requests.Body.of_string Requests.Mime.octet_stream body in 258 - let timeout = Requests.Timeout.create ~connect:10.0 ~read:10.0 () in 258 + let timeout = Requests.Timeout.v ~connect:10.0 ~read:10.0 () in 259 259 let response = 260 260 Requests.One.post ~sw ~clock ~net ~headers ~body ~timeout ~verify_tls:false 261 261 url