mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 11:15:35 -05:00
request: Make client_addr public
This commit is contained in:
parent
d40a0070cb
commit
8d7dd43ba1
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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. *)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue