ning at http://"^ hostname ^ ":" ^ Pervasives.string_of_int port ^ "/")
  end

let () =
  create_server Http_types.http
```
---

## FFI examples (FFI bindings to NODEJS http module)

- `http_types`

```ocaml
type req
class type _resp = object
  method statusCode : int [@@bs.set]
  method setHeader : string -> string -> unit
  method end_ : string -> unit
end [@bs]
class type _server = object
  method listen : int -> string -> (unit -> unit [@bs]) -> unit
end [@bs]
type server = _server Js.t
class type _http