http: conn state consistency with other transports 65/42265/2
authorFlorin Coras <[email protected]>
Wed, 29 Jan 2025 07:31:23 +0000 (23:31 -0800)
committerDave Barach <[email protected]>
Wed, 29 Jan 2025 19:54:50 +0000 (19:54 +0000)
Maintain transport state formatting consistency, i.e., upper case
states.

If we revisit, we should revisit all transports.

Type: refactor

Signed-off-by: Florin Coras <[email protected]>
Change-Id: I143e13aa5e8525bb276db9b4ec0e0baa153d1b44

src/plugins/http/http.h

index d61ac0b..d1e81ab 100644 (file)
@@ -72,12 +72,12 @@ typedef struct
 #define http_token_lit(s) (s), sizeof (s) - 1
 
 #define foreach_http_conn_state                                               \
-  _ (LISTEN, "listen")                                                        \
-  _ (CONNECTING, "connecting")                                                \
-  _ (ESTABLISHED, "established")                                              \
-  _ (TRANSPORT_CLOSED, "transport-closed")                                    \
-  _ (APP_CLOSED, "app-closed")                                                \
-  _ (CLOSED, "closed")
+  _ (LISTEN, "LISTEN")                                                        \
+  _ (CONNECTING, "CONNECTING")                                                \
+  _ (ESTABLISHED, "ESTABLISHED")                                              \
+  _ (TRANSPORT_CLOSED, "TRANSPORT-CLOSED")                                    \
+  _ (APP_CLOSED, "APP-CLOSED")                                                \
+  _ (CLOSED, "CLOSED")
 
 typedef enum http_conn_state_
 {