-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathInit.h
More file actions
29 lines (22 loc) · 659 Bytes
/
Init.h
File metadata and controls
29 lines (22 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#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
);