forked from awwit/httpserverapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInit.h
More file actions
16 lines (11 loc) · 643 Bytes
/
Init.h
File metadata and controls
16 lines (11 loc) · 643 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once
#include "server/Request.h"
#include "server/Response.h"
#include "transfer/AppRequest.h"
#include "transfer/AppResponse.h"
Socket::Adapter *createSocketAdapter(Transfer::app_request *request, void *addr);
void destroySocketAdapter(Socket::Adapter *adapter);
std::string getClearPath(const std::string &path);
bool initServerObjects(HttpServer::Request *procRequest, HttpServer::Response *procResponse, const Transfer::app_request *request, Socket::Adapter *socket_adapter);
void freeProtocolData(HttpServer::Response *response);
bool isSwitchingProtocols(const HttpServer::Request &request, HttpServer::Response &response);