| 3950 | |
| 3951 | |
| 3952 | Future<Response> Http::acknowledgeContainerInputResponse( |
| 3953 | const ContainerID& containerId) const { |
| 3954 | return slave->containerizer->attach(containerId) |
| 3955 | .then([](Connection connection) { |
| 3956 | Request request; |
| 3957 | request.method = "POST"; |
| 3958 | request.type = Request::BODY; |
| 3959 | request.url.domain = ""; |
| 3960 | request.url.path = "/acknowledge_container_input_response"; |
| 3961 | |
| 3962 | // This is a non Keep-Alive request which means the connection |
| 3963 | // will be closed when the response is received. Since the |
| 3964 | // 'Connection' is reference-counted, we must maintain a copy |
| 3965 | // until the disconnection occurs. |
| 3966 | connection.disconnected() |
| 3967 | .onAny([connection]() {}); |
| 3968 | |
| 3969 | return connection.send(request); |
| 3970 | }); |
| 3971 | } |
| 3972 | |
| 3973 | |
| 3974 | Future<Response> Http::attachContainerInput( |
nothing calls this directly
no test coverage detected