ESP-IDF
httpd_data::hd_calls
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
httpd_data::hd_calls
httpd_data::hd_calls field
Registered URI handlers
Syntax
Show:
Summary
Declaration
from
esp_httpd_priv.h:126
httpd_uri_t
*
*
hd_calls
;
Examples
References
from
examples
Code
Location
Referrer
httpd_uri_t
*
*
hd_calls
;
/*!< Registered URI handlers */
esp_httpd_priv.h:126
hd
->
hd_calls
=
calloc
(
config
->
max_uri_handlers
,
sizeof
(
httpd_uri_t
*
)
)
;
httpd_main.c:433
httpd_create()
if
(
!
hd
->
hd_calls
)
{
httpd_main.c:434
httpd_create()
free
(
hd
->
hd_calls
)
;
httpd_main.c:442
httpd_create()
free
(
hd
->
hd_calls
)
;
httpd_main.c:451
httpd_create()
free
(
hd
->
hd_calls
)
;
httpd_main.c:460
httpd_create()
free
(
hd
->
hd_calls
)
;
httpd_main.c:479
httpd_delete()
if
(
!
hd
->
hd_calls
[
i
]
)
{
httpd_uri.c:95
httpd_find_uri_handler()
ESP_LOGD
(
TAG
,
LOG_FMT
(
"[%d] = %s"
)
,
i
,
hd
->
hd_calls
[
i
]
->
uri
)
;
httpd_uri.c:98
httpd_find_uri_handler()
hd
->
config
.
uri_match_fn
(
hd
->
hd_calls
[
i
]
->
uri
,
uri
,
uri_len
)
:
httpd_uri.c:103
httpd_find_uri_handler()
httpd_uri_match_simple
(
hd
->
hd_calls
[
i
]
->
uri
,
uri
,
uri_len
)
)
{
httpd_uri.c:104
httpd_find_uri_handler()
if
(
hd
->
hd_calls
[
i
]
->
method
==
method
||
hd
->
hd_calls
[
i
]
->
method
==
HTTP_ANY
)
{
httpd_uri.c:106
httpd_find_uri_handler()
return
hd
->
hd_calls
[
i
]
;
httpd_uri.c:113
httpd_find_uri_handler()
if
(
hd
->
hd_calls
[
i
]
==
NULL
)
{
httpd_uri.c:148
httpd_register_uri_handler()
hd
->
hd_calls
[
i
]
=
malloc
(
sizeof
(
httpd_uri_t
)
)
;
httpd_uri.c:150
httpd_register_uri_handler()
if
(
hd
->
hd_calls
[
i
]
==
NULL
)
{
httpd_uri.c:151
httpd_register_uri_handler()
hd
->
hd_calls
[
i
]
->
uri
=
strdup
(
uri_handler
->
uri
)
;
httpd_uri.c:158
httpd_register_uri_handler()
if
(
hd
->
hd_calls
[
i
]
->
uri
==
NULL
)
{
httpd_uri.c:159
httpd_register_uri_handler()
free
(
hd
->
hd_calls
[
i
]
)
;
httpd_uri.c:161
httpd_register_uri_handler()
hd
->
hd_calls
[
i
]
->
method
=
uri_handler
->
method
;
httpd_uri.c:166
httpd_register_uri_handler()
hd
->
hd_calls
[
i
]
->
handler
=
uri_handler
->
handler
;
httpd_uri.c:167
httpd_register_uri_handler()
hd
->
hd_calls
[
i
]
->
user_ctx
=
uri_handler
->
user_ctx
;
httpd_uri.c:168
httpd_register_uri_handler()
hd
->
hd_calls
[
i
]
->
is_websocket
=
uri_handler
->
is_websocket
;
httpd_uri.c:170
httpd_register_uri_handler()
hd
->
hd_calls
[
i
]
->
handle_ws_control_frames
=
uri_handler
->
handle_ws_control_frames
;
httpd_uri.c:171
httpd_register_uri_handler()
hd
->
hd_calls
[
i
]
->
supported_subprotocol
=
strdup
(
uri_handler
->
supported_subprotocol
)
;
httpd_uri.c:173
httpd_register_uri_handler()
hd
->
hd_calls
[
i
]
->
supported_subprotocol
=
NULL
;
httpd_uri.c:175
httpd_register_uri_handler()
ESP_LOGD
(
TAG
,
LOG_FMT
(
"[%d] exists %s"
)
,
i
,
hd
->
hd_calls
[
i
]
->
uri
)
;
httpd_uri.c:181
httpd_register_uri_handler()
if
(
!
hd
->
hd_calls
[
i
]
)
{
httpd_uri.c:196
httpd_unregister_uri_handler()
if
(
(
hd
->
hd_calls
[
i
]
->
method
==
method
)
&&
// First match methods
httpd_uri.c:199
httpd_unregister_uri_handler()
(
strcmp
(
hd
->
hd_calls
[
i
]
->
uri
,
uri
)
==
0
)
)
{
// Then match URI string
httpd_uri.c:200
httpd_unregister_uri_handler()
ESP_LOGD
(
TAG
,
LOG_FMT
(
"[%d] removing %s"
)
,
i
,
hd
->
hd_calls
[
i
]
->
uri
)
;
httpd_uri.c:201
httpd_unregister_uri_handler()
free
(
(
char
*
)
hd
->
hd_calls
[
i
]
->
uri
)
;
httpd_uri.c:203
httpd_unregister_uri_handler()
free
(
hd
->
hd_calls
[
i
]
)
;
httpd_uri.c:204
httpd_unregister_uri_handler()
hd
->
hd_calls
[
i
]
=
NULL
;
httpd_uri.c:205
httpd_unregister_uri_handler()
if
(
!
hd
->
hd_calls
[
i
]
)
{
httpd_uri.c:210
httpd_unregister_uri_handler()
hd
->
hd_calls
[
i
-
1
]
=
hd
->
hd_calls
[
i
]
;
httpd_uri.c:213
httpd_unregister_uri_handler()
hd
->
hd_calls
[
i
-
1
]
=
NULL
;
httpd_uri.c:216
httpd_unregister_uri_handler()
if
(
!
hd
->
hd_calls
[
i
]
)
{
httpd_uri.c:235
httpd_unregister_uri()
if
(
strcmp
(
hd
->
hd_calls
[
i
]
->
uri
,
uri
)
==
0
)
{
// Match URI strings
httpd_uri.c:238
httpd_unregister_uri()
free
(
(
char
*
)
hd
->
hd_calls
[
i
]
->
uri
)
;
httpd_uri.c:241
httpd_unregister_uri()
free
(
hd
->
hd_calls
[
i
]
)
;
httpd_uri.c:242
httpd_unregister_uri()
hd
->
hd_calls
[
i
]
=
NULL
;
httpd_uri.c:243
httpd_unregister_uri()
hd
->
hd_calls
[
i
-
j
]
=
hd
->
hd_calls
[
i
]
;
httpd_uri.c:250
httpd_unregister_uri()
hd
->
hd_calls
[
k
]
=
NULL
;
httpd_uri.c:255
httpd_unregister_uri()
if
(
!
hd
->
hd_calls
[
i
]
)
{
httpd_uri.c:267
httpd_unregister_all_uri_handlers()
ESP_LOGD
(
TAG
,
LOG_FMT
(
"[%d] removing %s"
)
,
i
,
hd
->
hd_calls
[
i
]
->
uri
)
;
httpd_uri.c:270
httpd_unregister_all_uri_handlers()
free
(
(
char
*
)
hd
->
hd_calls
[
i
]
->
uri
)
;
httpd_uri.c:272
httpd_unregister_all_uri_handlers()
free
(
hd
->
hd_calls
[
i
]
)
;
httpd_uri.c:273
httpd_unregister_all_uri_handlers()
hd
->
hd_calls
[
i
]
=
NULL
;
httpd_uri.c:274
httpd_unregister_all_uri_handlers()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
httpd_data::hd_calls
is written by 1 function and is read by 7 functions:
httpd_create()
All items filtered out
httpd_data::hd_calls
httpd_create()
httpd_delete()
httpd_find_uri_handler()
httpd_register_uri_handler()
httpd_unregister_uri_handler()
httpd_unregister_uri()
httpd_unregister_all_uri_handlers()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out