Function setCloseConnection

Synopsis

#include <lib/inc/drogon/HttpResponse.h>

virtual void setCloseConnection(bool on)=0

Description

Set if close the connection after the request is sent.

Parameters:

on - if the parameter is false, the connection keeps alive on the condition that the client request has a 'keep-alive' head, otherwise it is closed immediately after sending the last byte of the response. It's false by default when the response is created.

Source

Line 124 in lib/inc/drogon/HttpResponse.h.






Add Discussion as Guest

Log in to DocsForge