NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
http.h
Go to the documentation of this file.
1#ifndef HTTP_H
2#define HTTP_H
3
5#include <QString>
6
10
11namespace NetSim {
12
15
26class HTTP {
27public:
36 static void initHTTPRequest(const QString &requestType, const QString &uri,
37 const QString &version, Package &data);
38
48 static void initHTTPResponse(const QString &version, quint16 messageCode,
49 const QString &messageText, Package &data,
50 const QString &htmlFile);
51};
52} // namespace NetSim
53
54#endif // HTTP_H
A static class that provides methods to handle HTTP requests and responses.
Definition http.h:26
static void initHTTPRequest(const QString &requestType, const QString &uri, const QString &version, Package &data)
Initializes an HTTP request header.
Definition http.cpp:5
static void initHTTPResponse(const QString &version, quint16 messageCode, const QString &messageText, Package &data, const QString &htmlFile)
Initializes an HTTP response header.
Definition http.cpp:22
Represents a network package.
Definition package.h:28
Definition logger.h:12
Contains the Package class definition.