* RESTCONF,

* Refactored http1 code
  * fixed some http1/http2 only compile issues
This commit is contained in:
Olof hagsand 2022-02-14 20:59:10 +01:00
parent 78bdc4eaca
commit 12dddfd794
6 changed files with 408 additions and 276 deletions

View file

@ -73,7 +73,8 @@ typedef struct {
cbuf *sd_body; /* http output body as cbuf terminated with \r\n */
size_t sd_body_len; /* Content-Length, note for HEAD body body can be NULL and this non-zero */
size_t sd_body_offset; /* Offset into body */
cbuf *sd_indata; /* Receive/input data */
cbuf *sd_inbuf; /* Receive/input buf (whole message) */
cbuf *sd_indata; /* Receive/input data body */
char *sd_path; /* Uri path, uri-encoded, without args (eg ?) */
uint16_t sd_code; /* If != 0 send a reply XXX: need reply flag? */
struct restconf_conn *sd_conn; /* Backpointer to connection this stream is part of */