stasis_rest_handlers Struct Reference

Handler for a single RESTful path segment. More...

#include <ari.h>

Collaboration diagram for stasis_rest_handlers:

Collaboration graph
[legend]

Data Fields

stasis_rest_callback callbacks [AST_HTTP_MAX_METHOD]
struct stasis_rest_handlerschildren []
int is_wildcard
size_t num_children
const char * path_segment
struct ast_websocket_serverws_server

Detailed Description

Handler for a single RESTful path segment.

Definition at line 67 of file ari.h.


Field Documentation

stasis_rest_callback callbacks[AST_HTTP_MAX_METHOD]

Callbacks for all handled HTTP methods.

Definition at line 78 of file ari.h.

Referenced by add_allow_header(), ast_ari_invoke(), and handle_options().

struct stasis_rest_handlers* children[] [read]

Handlers for sub-paths

Definition at line 84 of file ari.h.

Referenced by ast_ari_invoke(), and ast_ari_remove_handler().

If true (non-zero), path_segment is a wildcard, and will match all values.

Value of the segement will be passed into the path_vars parameter of the callback.

Definition at line 76 of file ari.h.

Referenced by ast_ari_invoke().

size_t num_children

Number of children in the children array

Definition at line 82 of file ari.h.

Referenced by ast_ari_add_handler(), ast_ari_invoke(), and ast_ari_remove_handler().

const char* path_segment

Path segement to handle

Definition at line 69 of file ari.h.

Referenced by ast_ari_invoke().

WebSocket server for handling WebSocket upgrades.

Definition at line 80 of file ari.h.

Referenced by ast_ari_invoke(), load_module(), and unload_module().


The documentation for this struct was generated from the following file:

Generated on Thu Apr 16 06:37:45 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6