smollerGraph 0.20.2
A small graph database, from scratch
Loading...
Searching...
No Matches
server.h
Go to the documentation of this file.
1#ifndef SMOLLERGRAPH_SERVER_H_
2#define SMOLLERGRAPH_SERVER_H_
3
4#include <string>
5
6#include "absl/status/status.h"
8
9namespace smollergraph {
10
11// Answers HTTP requests for the graph on `address` and `port`, until the
12// process is stopped. Returns an error when it can't listen there.
13absl::Status Serve(const Graph& graph, const std::string& address, int port);
14
15} // namespace smollergraph
16
17#endif // SMOLLERGRAPH_SERVER_H_
absl::Status Serve(const Graph &graph, const std::string &address, int port)
Answers HTTP requests for the graph on address and port, until the process is stopped.
Definition server.cc:32