diff options
author | Sean Young <sean@mess.org> | 2016-01-31 11:31:00 +0000 |
---|---|---|
committer | Azat Khuzhin <azat@libevent.org> | 2021-08-10 23:22:10 +0300 |
commit | f446229b2206691eae7ec892e68b2a0d6ef61306 (patch) | |
tree | bbf3a0befb4d9f9affdbe2281d15c278195c9716 /http-internal.h | |
parent | 6f139b871100aa2322598dfd37c4145e033d2602 (diff) | |
download | libevent-f446229b2206691eae7ec892e68b2a0d6ef61306.tar.gz |
http: support unix domain sockets
There are no standard for encoding a unix socket in an url. nginx uses:
http://unix:/path/to/unix/socket:/httppath
The second colon is needed to delimit where the unix path ends and where
the rest of the url continues.
Signed-off-by: Sean Young <sean@mess.org>
Diffstat (limited to 'http-internal.h')
-rw-r--r-- | http-internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/http-internal.h b/http-internal.h index dfd5b01b..a5844e1d 100644 --- a/http-internal.h +++ b/http-internal.h @@ -61,6 +61,9 @@ struct evhttp_connection { char *address; /* address to connect to */ ev_uint16_t port; +#ifndef _WIN32 + char *unixsocket; +#endif size_t max_headers_size; ev_uint64_t max_body_size; |