HttpResourceTree.h
Go to the documentation of this file.
63 HttpResource* set(const String& path, HttpResource* resource, HttpResourcePlugin* plugin, Tail... plugins)
91 HttpResource* set(const String& path, const HttpResourceDelegate& onRequestComplete, HttpResourcePlugin* plugin,
119 HttpResource* set(const String& path, const HttpPathDelegate& callback, HttpResourcePlugin* plugin, Tail... plugins)
HttpResource * setDefault(HttpResource *resource)
Set the default resource handler.
Definition: HttpResourceTree.h:32
HttpResource * set(const String &path, const HttpResourceDelegate &onRequestComplete, HttpResourcePlugin *plugin, Tail... plugins)
Set a callback to handle the given path, with one or more plugins.
Definition: HttpResourceTree.h:91
HttpResource * getDefault()
Get the current default resource handler, if any.
Definition: HttpResourceTree.h:55
HttpResource * find(const String &key) const
Find the value for a given key, if it exists.
Definition: ObjectMap.h:235
Represents either an incoming or outgoing response to a HTTP request.
Definition: HttpResponse.h:25
Class to map URL paths to classes which handle them.
Definition: HttpResourceTree.h:26
Base plugin class. Implementations should be based on either HttpPreFilter or HttpPostFilter
Definition: HttpResourcePlugin.h:23
void addPlugin(HttpResourcePlugin *plugin)
#define RESOURCE_PATH_DEFAULT
Identifies the default resource path.
Definition: HttpResourceTree.h:20
HttpResource * setDefault(const HttpResourceDelegate &onRequestComplete)
Set the default resource handler, identified by "*" wildcard.
Definition: HttpResourceTree.h:41
HttpResource * set(const String &path, const HttpPathDelegate &callback, HttpResourcePlugin *plugin, Tail... plugins)
Add a new path resource with callback and one or more plugins.
Definition: HttpResourceTree.h:119
HttpResource * set(const String &path, HttpResource *resource, HttpResourcePlugin *plugin, Tail... plugins)
Definition: HttpResourceTree.h:63
Implementation of a HashMap for owned objects, i.e. anything created with new().
Definition: ObjectMap.h:48
HttpResource * setDefault(const HttpPathDelegate &callback)
Set the default resource handler, identified by "*" wildcard.
Definition: HttpResourceTree.h:47
Instances of this class are registered with an HttpServer for a specific URL.
Definition: HttpResource.h:33
Definition: Delegate.h:20