HTTP C client library for small IoT devices (MCU or small MPU)
The coreHTTP library is a client implementation of a subset of the HTTP/1.1 standard. The HTTP standard provides a stateless protocol that runs on top of TCP/IP and is often used in distributed, collaborative, hypertext information systems.
The coreHTTP library implements a subset of the HTTP/1.1 protocol standard. This library has been optimized for a low memory footprint. The library provides a fully synchronous API to allow applications to completely manage their concurrency. The library also operates only on fixed buffers, so that applications have complete control of their memory allocation strategy.
The library provides a high-level simple API to serialize request headers, send the request, and receive the response.
The library is decoupled from the underlying network drivers through a two-function send and receive transport interface. The application writer can select an existing transport interface or implement their own, as appropriate for their application.
The library is written in C and designed to be compliant with ISO C90 and MISRA C:2012. The library's only dependencies are the standard C library and LTS version (v12.19.1) of http-parser from Node.js. The library has proofs showing safe memory use and no heap allocation, making it suitable for IoT microcontrollers, but also fully portable to other platforms.
When using HTTP connections in IoT applications, we recommend that you use a secure transport interface, such as one that uses the TLS protocol as demonstrated in the HTTP TLS demo.
This library can be freely used and is distributed under the MIT open source license.
|http_parser.c (third-party utility)||15.7K||13.0K|
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.