GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  KHTTP_WRITE (3)

NAME

khttp_putc, khttp_puts, khttp_write - write HTTP content data for kcgi

CONTENTS

Library
Synopsis
Description
See Also
Authors

LIBRARY


.Lb libkcgi

SYNOPSIS


.In stdint.h
.In kcgi.h void
.Fo khttp_putc struct kreq *req int c
.Fc void
.Fo khttp_puts struct kreq *req const char *cp
.Fc void
.Fo khttp_write struct kreq *req const char *buf size_t sz
.Fc

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
.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv .
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.