#include <Route.hpp>
Definition at line 4 of file Route.hpp.
◆ Route()
Constructor.
A route is an object which define how to handle a request. Each Server is Route inherited and each location block lead to a new Route object.
- Parameters
-
server | The Server parent of the route. NULL if the object is the server. |
location | The uri associatied to the route. |
datas | The JSONNode giving configuration. |
Definition at line 20 of file Route.cpp.
◆ ~Route()
◆ correctUri()
string Route::correctUri |
( |
string |
uri | ) |
|
Find the local path corresponding to the uri asked by te client.
- Parameters
-
uri | The uri asked by the client. |
- Returns
- The local path.
- Deprecated:
- Not used by nginx until config use rewrite keyword.
Definition at line 115 of file Route.cpp.
◆ getIndex()
string Route::getIndex |
( |
string |
uri, |
|
|
string |
path |
|
) |
| |
Search for an index while generating autoindex.
- Parameters
-
uri | The uri requested by client. |
path | The correct path associated with uri. |
- Returns
- The index content to give to client or an empty string if there is nothing for him.
Definition at line 66 of file Route.cpp.
◆ getLocation()
string Route::getLocation |
( |
void |
| ) |
|
◆ getReturn()
string Route::getReturn |
( |
void |
| ) |
|
◆ getRoot()
string Route::getRoot |
( |
void |
| ) |
|
◆ getServer()
Server * Route::getServer |
( |
void |
| ) |
|
◆ _allowed_methods
◆ _autoindex
◆ _cgi
std::map<string, string> Route::_cgi |
◆ _client_max_body_size
int Route::_client_max_body_size |
◆ _indexs
◆ _location
◆ _ret
◆ _root
◆ _server
The documentation for this class was generated from the following files: