chore(lander): updated changelog
ci/woodpecker/push/build Pipeline was successful
Details
ci/woodpecker/push/build Pipeline was successful
Details
parent
876e5a7de4
commit
8dc8ef8e2d
12
CHANGELOG.md
12
CHANGELOG.md
|
@ -7,10 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased](https://git.rustybever.be/Chewing_Bever/lander/src/branch/dev)
|
## [Unreleased](https://git.rustybever.be/Chewing_Bever/lander/src/branch/dev)
|
||||||
|
|
||||||
### Changed
|
### Added
|
||||||
|
|
||||||
* HTTP Loop
|
* LNM - Lander Network Module
|
||||||
* Responses can now have an arbitrary number of headers
|
* Rewrite of the event loop & HTTP loop
|
||||||
|
* Fully independent library
|
||||||
|
* Numerous improvements
|
||||||
|
* Streaming of headers
|
||||||
|
* Allow custom & an arbitrary number of response headers
|
||||||
|
* Better API for adding routes
|
||||||
|
* State machine HTTP loop
|
||||||
|
|
||||||
## [0.2.0](https://git.rustybever.be/Chewing_Bever/lander/src/tag/0.2.0)
|
## [0.2.0](https://git.rustybever.be/Chewing_Bever/lander/src/tag/0.2.0)
|
||||||
|
|
||||||
|
|
|
@ -49,12 +49,13 @@ lnm_http_parse_err lnm_http_req_parse(lnm_http_req *req, char *buf,
|
||||||
req->query.len = path_len - (question_mark + 1 - path);
|
req->query.len = path_len - (question_mark + 1 - path);
|
||||||
|
|
||||||
path_len = question_mark - path;
|
path_len = question_mark - path;
|
||||||
|
|
||||||
|
// All parsed strings should be null-terminated. This character is either a
|
||||||
|
// newline (if at the end of the path), or a question mark (if a query is
|
||||||
|
// present).
|
||||||
|
path[path_len] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
// All parsed strings should be null-terminated. This character is either a
|
|
||||||
// newline (if at the end of the path), or a question mark (if a query is
|
|
||||||
// present).
|
|
||||||
path[path_len] = '\0';
|
|
||||||
req->path.len = path_len;
|
req->path.len = path_len;
|
||||||
req->path.s = path;
|
req->path.s = path;
|
||||||
req->len = req_len;
|
req->len = req_len;
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "lnm/common.h"
|
#include "lnm/common.h"
|
||||||
#include "lnm/loop_internal.h"
|
#include "lnm/loop_internal.h"
|
||||||
|
|
Loading…
Reference in New Issue