Blame src/microhttpd/response.h

Packit 875988
/*
Packit 875988
     This file is part of libmicrohttpd
Packit 875988
     Copyright (C) 2007 Daniel Pittman and Christian Grothoff
Packit 875988
Packit 875988
     This library is free software; you can redistribute it and/or
Packit 875988
     modify it under the terms of the GNU Lesser General Public
Packit 875988
     License as published by the Free Software Foundation; either
Packit 875988
     version 2.1 of the License, or (at your option) any later version.
Packit 875988
Packit 875988
     This library is distributed in the hope that it will be useful,
Packit 875988
     but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 875988
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 875988
     Lesser General Public License for more details.
Packit 875988
Packit 875988
     You should have received a copy of the GNU Lesser General Public
Packit 875988
     License along with this library; if not, write to the Free Software
Packit 875988
     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
Packit 875988
*/
Packit 875988
Packit 875988
/**
Packit 875988
 * @file response.h
Packit 875988
 * @brief  Methods for managing response objects
Packit 875988
 * @author Daniel Pittman
Packit 875988
 * @author Christian Grothoff
Packit 875988
 */
Packit 875988
Packit 875988
#ifndef RESPONSE_H
Packit 875988
#define RESPONSE_H
Packit 875988
Packit 875988
/**
Packit 875988
 * Increments the reference counter for the @a response.
Packit 875988
 *
Packit 875988
 * @param response object to modify
Packit 875988
 */
Packit 875988
void
Packit 875988
MHD_increment_response_rc (struct MHD_Response *response);
Packit 875988
Packit 875988
Packit 875988
/**
Packit 875988
 * We are done sending the header of a given response
Packit 875988
 * to the client.  Now it is time to perform the upgrade
Packit 875988
 * and hand over the connection to the application.
Packit 875988
 * @remark To be called only from thread that process connection's
Packit 875988
 * recv(), send() and response. Must be called right after sending
Packit 875988
 * response headers.
Packit 875988
 *
Packit 875988
 * @param response the response that was created for an upgrade
Packit 875988
 * @param connection the specific connection we are upgrading
Packit 875988
 * @return #MHD_YES on success, #MHD_NO on failure (will cause
Packit 875988
 *        connection to be closed)
Packit 875988
 */
Packit 875988
int
Packit 875988
MHD_response_execute_upgrade_ (struct MHD_Response *response,
Packit 875988
                               struct MHD_Connection *connection);
Packit 875988
Packit 875988
Packit 875988
#endif