MCPcopy Create free account
hub / github.com/apache/mesos / libprocess

Function libprocess

3rdparty/libprocess/src/process.cpp:704–712  ·  view source on GitHub ↗

Returns true if `request` contains an inbound libprocess message. A libprocess message can either be sent by another instance of libprocess (i.e. both of the "User-Agent" and "Libprocess-From" headers will be set), or a client that speaks the libprocess protocol (i.e. only the "Libprocess-From" header will be set). This function returns true for either case.

Source from the content-addressed store, hash-verified

702// protocol (i.e. only the "Libprocess-From" header will be set).
703// This function returns true for either case.
704static bool libprocess(Request* request)
705{
706 return
707 (request->method == "POST" &&
708 request->headers.contains("User-Agent") &&
709 request->headers["User-Agent"].find("libprocess/") == 0) ||
710 (request->method == "POST" &&
711 request->headers.contains("Libprocess-From"));
712}
713
714
715// Returns a 'BODY' request once the body of the provided

Callers 1

handleMethod · 0.85

Calls 2

containsMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected