"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/http_htx.c" between
haproxy-2.0.13.tar.gz and haproxy-2.0.14.tar.gz

About: HAProxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments. LTS (Long-Term Support) release.

http_htx.c  (haproxy-2.0.13):http_htx.c  (haproxy-2.0.14)
skipping to change at line 40 skipping to change at line 40
struct htx_blk *blk; struct htx_blk *blk;
BUG_ON(htx->first == -1); BUG_ON(htx->first == -1);
blk = htx_get_first_blk(htx); blk = htx_get_first_blk(htx);
if (!blk) if (!blk)
return NULL; return NULL;
BUG_ON(htx_get_blk_type(blk) != HTX_BLK_REQ_SL && htx_get_blk_type(blk) ! = HTX_BLK_RES_SL); BUG_ON(htx_get_blk_type(blk) != HTX_BLK_REQ_SL && htx_get_blk_type(blk) ! = HTX_BLK_RES_SL);
return htx_get_blk_ptr(htx, blk); return htx_get_blk_ptr(htx, blk);
} }
/* Returns the headers size in the HTX message */
size_t http_get_hdrs_size(struct htx *htx)
{
struct htx_blk *blk;
size_t sz = 0;
blk = htx_get_first_blk(htx);
if (!blk || htx_get_blk_type(blk) > HTX_BLK_EOH)
return sz;
for (; blk; blk = htx_get_next_blk(htx, blk)) {
sz += htx_get_blksz(blk);
if (htx_get_blk_type(blk) == HTX_BLK_EOH)
break;
}
return sz;
}
/* Finds the first or next occurrence of header <name> in the HTX message <htx> /* Finds the first or next occurrence of header <name> in the HTX message <htx>
* using the context <ctx>. This structure holds everything necessary to use the * using the context <ctx>. This structure holds everything necessary to use the
* header and find next occurrence. If its <blk> member is NULL, the header is * header and find next occurrence. If its <blk> member is NULL, the header is
* searched from the beginning. Otherwise, the next occurrence is returned. The * searched from the beginning. Otherwise, the next occurrence is returned. The
* function returns 1 when it finds a value, and 0 when there is no more. It is * function returns 1 when it finds a value, and 0 when there is no more. It is
* designed to work with headers defined as comma-separated lists. If <full> is * designed to work with headers defined as comma-separated lists. If <full> is
* set, it works on full-line headers in whose comma is not a delimiter but is * set, it works on full-line headers in whose comma is not a delimiter but is
* part of the syntax. A special case, if ctx->value is NULL when searching for * part of the syntax. A special case, if ctx->value is NULL when searching for
* a new values of a header, the current header is rescanned. This allows * a new values of a header, the current header is rescanned. This allows
* rescanning after a header deletion. * rescanning after a header deletion.
 End of changes. 1 change blocks. 
0 lines changed or deleted 18 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)