httpresponse.h
// Copyright (c) 1999-2018 David Muse
// See the COPYING file for more information
#ifndef RUDIMENTS_HTTPRESPONSE_H
#define RUDIMENTS_HTTPRESPONSE_H
#include <rudiments/private/httpresponseincludes.h>
class RUDIMENTS_DLLSPEC httpresponse : public output {
public:
httpresponse(httpserverapi *sapi);
virtual ~httpresponse();
void textHtml();
void textPlain();
void contentType(const char *type, const char *subtype);
void contentType(const char *type, const char *subtype,
const char *charset);
void contentType(const char *type, const char *subtype,
const char *charset,
const char *boundary);
void cr();
void status(const char *protocol,
const char *protocolversion,
const char *code);
void setCookie(const char *name, const char *value,
const char *domain, const char *path,
const char *expires, bool secure);
const char *boundaryString();
void multiPartBoundary(output *out);
void multiPartEnd(output *out);
httpresponse *status(const char *status);
httpresponse *header(const char *header);
httpresponse *header(const char *header,
const char *value);
ssize_t write(const unsigned char *string, size_t size);
ssize_t write(const char *string);
ssize_t write(const char *string, size_t length);
ssize_t write(char character);
ssize_t write(int16_t number);
ssize_t write(int32_t number);
ssize_t write(int64_t number);
ssize_t write(unsigned char character);
ssize_t write(uint16_t number);
ssize_t write(uint32_t number);
ssize_t write(uint64_t number);
ssize_t write(float number);
ssize_t write(double number);
ssize_t write(file *filebuffer);
#include <rudiments/private/httpresponse.h>
};
#endif
character
Definition: character.h:11
file
Definition: file.h:19
httpresponse
Definition: httpresponse.h:11
httpresponse::textPlain
void textPlain()
httpresponse::multiPartBoundary
void multiPartBoundary(output *out)
httpresponse::contentType
void contentType(const char *type, const char *subtype)
httpresponse::textHtml
void textHtml()
httpresponse::status
void status(const char *protocol, const char *protocolversion, const char *code)
httpresponse::write
ssize_t write(file *filebuffer)
httpresponse::cr
void cr()
httpresponse::header
httpresponse * header(const char *header)
httpresponse::status
httpresponse * status(const char *status)
httpresponse::setCookie
void setCookie(const char *name, const char *value, const char *domain, const char *path, const char *expires, bool secure)
httpresponse::contentType
void contentType(const char *type, const char *subtype, const char *charset, const char *boundary)
httpresponse::contentType
void contentType(const char *type, const char *subtype, const char *charset)
httpresponse::boundaryString
const char * boundaryString()
httpresponse::multiPartEnd
void multiPartEnd(output *out)
httpresponse::header
httpresponse * header(const char *header, const char *value)
httpserverapi
Definition: httpserverapi.h:9
output
Definition: output.h:9