CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
HttpServer.h File Reference
#include <chrono>
#include <string>
#include <uWebSockets/App.h>
#include <nlohmann/json.hpp>
#include "Session/SessionManager.h"
#include "Util/FileSystem.h"
Include dependency graph for HttpServer.h:
This graph shows which files directly or indirectly include this file:

Classes

class  carta::HttpServer
 

Namespaces

namespace  carta
 

Macros

#define HTTP_200   "200 OK"
 
#define HTTP_400   "400 Bad Request"
 
#define HTTP_404   "404 Not Found"
 
#define HTTP_403   "403 Forbidden"
 
#define HTTP_500   "500 Internal Server Error"
 
#define HTTP_501   "501 Not Implemented"
 
#define CARTA_PREFERENCES_SCHEMA_URL   "https://cartavis.github.io/schemas/preferences_schema_2.json"
 
#define CARTA_LAYOUT_SCHEMA_URL   "https://cartavis.github.io/schemas/layout_schema_2.json"
 
#define CARTA_SNIPPET_SCHEMA_URL   "https://cartavis.github.io/schemas/snippet_schema_1.json"
 
#define CARTA_WORKSPACE_SCHEMA_URL   "https://cartavis.github.io/schemas/workspace_schema_1.json"
 

Typedefs

typedef uWS::HttpRequest carta::Req
 
typedef uWS::HttpResponse< false > carta::Res
 
typedef std::function< bool(int &, uint32_t &, std::string &, std::string &, std::string &, bool &, std::string &, ScriptingResponseCallback, ScriptingSessionClosedCallback)> carta::ScriptingRequestHandler
 

Macro Definition Documentation

◆ CARTA_LAYOUT_SCHEMA_URL

#define CARTA_LAYOUT_SCHEMA_URL   "https://cartavis.github.io/schemas/layout_schema_2.json"

◆ CARTA_PREFERENCES_SCHEMA_URL

#define CARTA_PREFERENCES_SCHEMA_URL   "https://cartavis.github.io/schemas/preferences_schema_2.json"

◆ CARTA_SNIPPET_SCHEMA_URL

#define CARTA_SNIPPET_SCHEMA_URL   "https://cartavis.github.io/schemas/snippet_schema_1.json"

◆ CARTA_WORKSPACE_SCHEMA_URL

#define CARTA_WORKSPACE_SCHEMA_URL   "https://cartavis.github.io/schemas/workspace_schema_1.json"

◆ HTTP_200

#define HTTP_200   "200 OK"

◆ HTTP_400

#define HTTP_400   "400 Bad Request"

◆ HTTP_403

#define HTTP_403   "403 Forbidden"

◆ HTTP_404

#define HTTP_404   "404 Not Found"

◆ HTTP_500

#define HTTP_500   "500 Internal Server Error"

◆ HTTP_501

#define HTTP_501   "501 Not Implemented"