include: net: http: rename http_x.h http/x.h

Some minor housekeeping prior to adding an http server
implementation. There are already a number of http headers
and that number will likely increase with subsequent work.
Moving them into a common directory cleans up the
`include/net` directory a bit.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
This commit is contained in:
Christopher Friedt 2022-10-11 18:53:39 -04:00 committed by Christopher Friedt
commit dbe2c0d59e
18 changed files with 19 additions and 19 deletions

View file

@ -22,7 +22,7 @@
#include <zephyr/kernel.h> #include <zephyr/kernel.h>
#include <zephyr/net/net_ip.h> #include <zephyr/net/net_ip.h>
#include <zephyr/net/http_parser.h> #include <zephyr/net/http/parser.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View file

@ -46,8 +46,8 @@ typedef unsigned __int64 uint64_t;
#include <stddef.h> #include <stddef.h>
#endif #endif
#include <zephyr/net/http/method.h> #include <zephyr/net/http/method.h>
#include <zephyr/net/http_parser_state.h> #include <zephyr/net/http/parser_state.h>
#include <zephyr/net/http_parser_url.h> #include <zephyr/net/http/parser_url.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View file

@ -26,7 +26,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <zephyr/types.h> #include <zephyr/types.h>
#include <stddef.h> #include <stddef.h>
#include <zephyr/net/http_parser_state.h> #include <zephyr/net/http/parser_state.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View file

@ -16,8 +16,8 @@
#include <zephyr/kernel.h> #include <zephyr/kernel.h>
#include <zephyr/net/net_ip.h> #include <zephyr/net/net_ip.h>
#include <zephyr/net/http_parser.h> #include <zephyr/net/http/parser.h>
#include <zephyr/net/http_client.h> #include <zephyr/net/http/client.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View file

@ -9,7 +9,7 @@ LOG_MODULE_REGISTER(tagoio_http_post, CONFIG_TAGOIO_HTTP_POST_LOG_LEVEL);
#include <zephyr/kernel.h> #include <zephyr/kernel.h>
#include <zephyr/net/socket.h> #include <zephyr/net/socket.h>
#include <zephyr/net/http_client.h> #include <zephyr/net/http/client.h>
#include <zephyr/random/rand32.h> #include <zephyr/random/rand32.h>
#include <stdio.h> #include <stdio.h>

View file

@ -12,7 +12,7 @@ LOG_MODULE_DECLARE(tagoio_http_post, CONFIG_TAGOIO_HTTP_POST_LOG_LEVEL);
#include <zephyr/net/socketutils.h> #include <zephyr/net/socketutils.h>
#include <zephyr/net/dns_resolve.h> #include <zephyr/net/dns_resolve.h>
#include <zephyr/net/tls_credentials.h> #include <zephyr/net/tls_credentials.h>
#include <zephyr/net/http_client.h> #include <zephyr/net/http/client.h>
#include "sockets.h" #include "sockets.h"

View file

@ -10,7 +10,7 @@ LOG_MODULE_REGISTER(net_http_client_sample, LOG_LEVEL_DBG);
#include <zephyr/net/net_ip.h> #include <zephyr/net/net_ip.h>
#include <zephyr/net/socket.h> #include <zephyr/net/socket.h>
#include <zephyr/net/tls_credentials.h> #include <zephyr/net/tls_credentials.h>
#include <zephyr/net/http_client.h> #include <zephyr/net/http/client.h>
#include "ca_certificate.h" #include "ca_certificate.h"

View file

@ -23,7 +23,7 @@ LOG_MODULE_REGISTER(hawkbit, CONFIG_HAWKBIT_LOG_LEVEL);
#include <zephyr/net/net_mgmt.h> #include <zephyr/net/net_mgmt.h>
#include <zephyr/sys/reboot.h> #include <zephyr/sys/reboot.h>
#include <zephyr/drivers/flash.h> #include <zephyr/drivers/flash.h>
#include <zephyr/net/http_client.h> #include <zephyr/net/http/client.h>
#include <zephyr/net/dns_resolve.h> #include <zephyr/net/dns_resolve.h>
#include <zephyr/logging/log_ctrl.h> #include <zephyr/logging/log_ctrl.h>
#include <zephyr/storage/flash_map.h> #include <zephyr/storage/flash_map.h>

View file

@ -22,7 +22,7 @@ LOG_MODULE_REGISTER(net_http, CONFIG_NET_HTTP_LOG_LEVEL);
#include <zephyr/net/net_ip.h> #include <zephyr/net/net_ip.h>
#include <zephyr/net/socket.h> #include <zephyr/net/socket.h>
#include <zephyr/net/http_client.h> #include <zephyr/net/http/client.h>
#include "net_private.h" #include "net_private.h"

View file

@ -23,7 +23,7 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
#include <zephyr/net/http_parser.h> #include <zephyr/net/http/parser.h>
#include <zephyr/sys/__assert.h> #include <zephyr/sys/__assert.h>
#include <stddef.h> #include <stddef.h>
#include <ctype.h> #include <ctype.h>

View file

@ -29,7 +29,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <limits.h> #include <limits.h>
#include <zephyr/net/http_parser_url.h> #include <zephyr/net/http/parser_url.h>
#include <zephyr/toolchain.h> #include <zephyr/toolchain.h>
#ifndef BIT_AT #ifndef BIT_AT

View file

@ -26,7 +26,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <string.h> #include <string.h>
#include <zephyr/init.h> #include <zephyr/init.h>
#include <zephyr/net/http_parser_url.h> #include <zephyr/net/http/parser_url.h>
#include <zephyr/net/lwm2m.h> #include <zephyr/net/lwm2m.h>
#include <zephyr/net/net_ip.h> #include <zephyr/net/net_ip.h>
#include <zephyr/net/socket.h> #include <zephyr/net/socket.h>

View file

@ -26,7 +26,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <string.h> #include <string.h>
#include <zephyr/init.h> #include <zephyr/init.h>
#include <zephyr/net/http_parser_url.h> #include <zephyr/net/http/parser_url.h>
#include <zephyr/net/lwm2m.h> #include <zephyr/net/lwm2m.h>
#include <zephyr/net/lwm2m_path.h> #include <zephyr/net/lwm2m_path.h>
#include <zephyr/net/net_ip.h> #include <zephyr/net/net_ip.h>

View file

@ -30,7 +30,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <string.h> #include <string.h>
#include <zephyr/init.h> #include <zephyr/init.h>
#include <zephyr/net/http_parser_url.h> #include <zephyr/net/http/parser_url.h>
#include <zephyr/net/lwm2m.h> #include <zephyr/net/lwm2m.h>
#include <zephyr/net/net_ip.h> #include <zephyr/net/net_ip.h>
#include <zephyr/net/socket.h> #include <zephyr/net/socket.h>

View file

@ -15,7 +15,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <zephyr/net/http_parser.h> #include <zephyr/net/http/parser.h>
#include <zephyr/net/socket.h> #include <zephyr/net/socket.h>
#include "lwm2m_pull_context.h" #include "lwm2m_pull_context.h"

View file

@ -28,7 +28,7 @@ LOG_MODULE_REGISTER(net_websocket, CONFIG_NET_WEBSOCKET_LOG_LEVEL);
#else #else
#include <zephyr/net/socket.h> #include <zephyr/net/socket.h>
#endif #endif
#include <zephyr/net/http_client.h> #include <zephyr/net/http/client.h>
#include <zephyr/net/websocket.h> #include <zephyr/net/websocket.h>
#include <zephyr/random/rand32.h> #include <zephyr/random/rand32.h>

View file

@ -19,7 +19,7 @@
* IN THE SOFTWARE. * IN THE SOFTWARE.
*/ */
#include <zephyr/net/http_parser.h> #include <zephyr/net/http/parser.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>