aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtipidee/tipidee_fcgi_header_pack.c
blob: 2f1a55045a77dd85eddc137e9a0cd40148c7ac16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* ISC license. */

#include <skalibs/uint16.h>

#include <tipidee/fcgi.h>

void tipidee_fcgi_header_pack (char *s, fcgi_header const *hdr)
{
  *s++ = hdr->version ;
  *s++ = hdr->type ;
  uint16_pack_big(s, hdr->requestid) ; s += 2 ;
  uint16_pack_big(s, hdr->len) ; s += 2 ;
  *s++ = hdr->padlen ;
  *s++ = 0 ;
}