Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/lightning
/ http_headers_complete
Function
http_headers_complete
connectd/websocketd.c:124–127 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
122
}
123
124
static bool http_headers_complete(const u8 *buf, size_t len)
125
{
126
return memmem(buf, len,
"\r\n\r\n"
, 4) != NULL;
127
}
128
129
static void http_respond(int fd, const u8 *buf, size_t len)
130
{
Callers
1
http_upgrade
Function · 0.85
Calls
1
memmem
Function · 0.85
Tested by
no test coverage detected