khttp_write man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

KHTTP_WRITE(3)		 BSD Library Functions Manual		KHTTP_WRITE(3)

NAME
     khttp_putc, khttp_puts, khttp_write — write HTTP content data for kcgi

LIBRARY
     library “libkcgi”

SYNOPSIS
     #include <stdint.h>
     #include <kcgi.h>

     void
     khttp_putc(struct kreq *req, int c);

     void
     khttp_puts(struct kreq *req, const char *cp);

     void
     khttp_write(struct kreq *req, const char *buf, size_t sz);

DESCRIPTION
     The khttp_putc, khttp_puts, and khttp_write functions write HTTP content
     for a kcgi(3) context allocated with khttp_parse(3) or
     khttp_fcgi_parse(3).  These functions may only be invoked after
     khttp_body(3), else their behaviour is undefined.	khttp_putc emits a
     single character; khttp_puts emits a nil-terminated character string
     (note, this does not append a newline like puts(3)), and khttp_write
     emits a binary buffer buf of size sz.

SEE ALSO
     kcgi(3), khttp_body(3), khttp_parse(3)

AUTHORS
     The khttp_putc library was written by Kristaps Dzonsons
     ⟨kristaps@bsd.lv⟩.

BSD				April 29, 2024				   BSD
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net