request: Make client_addr public

This commit is contained in:
barti2du 2023-12-19 18:07:11 +02:00 committed by Simon Cruanes
parent d40a0070cb
commit 8d7dd43ba1
2 changed files with 5 additions and 0 deletions

View file

@ -176,6 +176,7 @@ module Request = struct
let headers self = self.headers
let host self = self.host
let client_addr self = self.client_addr
let meth self = self.meth
let path self = self.path
let body self = self.body

View file

@ -127,6 +127,10 @@ module Request : sig
val host : _ t -> string
(** Host field of the request. It also appears in the headers. *)
val client_addr : _ t -> Unix.sockaddr
(** Client address of the request.
@since NEXT_RELEASE *)
val meth : _ t -> Meth.t
(** Method for the request. *)