[Libwebsockets] Logging WS HS

Olivier Langlois olivier at olivierlanglois.net
Mon Feb 24 05:49:11 CET 2020


Yes this is it. Sorry everyone to have bothered the list. I didn't see
it despite all my source code browsing.

I guess I did reinvent the wheel and the existing function is
absolutely identical to the one I created...

On Sun, 2020-02-23 at 23:42 -0500, Olivier Langlois wrote:
> > > LWS_VISIBLE int
> > > lws_hdr_http_response(struct lws *wsi)
> > > {
> > >          if (!wsi->http.ah)
> > >                  return 0;
> > >          return wsi->http.ah->http_response;
> > > }
> > > 
> > > because otherwise, what is the alternative?
> > 
> > We're talking about this, which has been around a few years?
> > 
> > https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-client.h#n232-244



More information about the Libwebsockets mailing list