HttpResourceTree.h
Go to the documentation of this file.
Implementation of a HashMap for owned objects, i.e. anything created with new().
Definition: ObjectMap.h:47
HttpResourceDelegate onRequestComplete
request is complete OR upgraded
Definition: HttpResource.h:51
void setDefault(const HttpResourceDelegate &onRequestComplete)
Set the default resource handler, identified by "*" wildcard.
Definition: HttpResourceTree.h:40
Definition: Delegate.h:20
HttpResource * getDefault()
Get the current default resource handler, if any.
Definition: HttpResourceTree.h:54
#define RESOURCE_PATH_DEFAULT
Identifies the default resource path.
Definition: HttpResourceTree.h:20
Instances of this class are registered with an HttpServer for a specific URL.
Definition: HttpResource.h:34
void setDefault(const HttpPathDelegate &callback)
Set the default resource handler, identified by "*" wildcard.
Definition: HttpResourceTree.h:46
Class to map URL paths to classes which handle them.
Definition: HttpResourceTree.h:26
void setDefault(HttpResource *resource)
Set the default resource handler.
Definition: HttpResourceTree.h:32
HttpResource * find(const String &key) const
Find the value for a given key, if it exists.
Definition: ObjectMap.h:225