IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


CGI API types and data structures


Detailed Description

The CGI API defines the following types:

Data Structures

struct  rpCgi
 CGI structure. More...
struct  CGI_Entry
 CGI entry. More...
struct  CUSTOM_MIMETYPES_TABLE
 MIME table. More...

Defines

#define CGI_FLAG_TRANSFERENCODING_CHUNKED   1
 Enable/disable Chunked transfer encoding.
#define CGI_FLAG_CALL_AGAIN   2
 Call CGI function again.
#define CGI_FLAG_REQUEST_ABORTED   4
 Request aborted.

Typedefs

typedef void(* RpCgiFuncPtr )(rpCgiPtr CgiRequestPtr)
 CGI function prototype.
typedef char * CUSTOM_CONTENTENCODING_TABLE
 Content encoding table.
typedef char * CUSTOM_HEADERS_TABLE
 Custom headers table.

Enumerations

enum  rpDataType {
  CGIDataTypeHtml = 0,
  CGIDataTypeImageGif = 1,
  CGIDataTypeApplet = 2,
  CGIDataTypeText = 3,
  CGIDataTypeImageJpeg = 4,
  CGIDataTypeImagePict = 5,
  CGIDataTypeImageTiff = 6,
  CGIDataTypeImagePng = 7,
  CGIDataTypeForm = 8,
  CGIDataTypeIpp = 9,
  CGIDataTypeCss = 10,
  CGIDataTypeXml = 11,
  CGIDataTypeWav = 12,
  CGIDataTypePdf = 13,
  CGIDataTypeJavaArchive = 14,
  CGIDataTypeOctet = 15,
  CGIDataTypeVndWapWml = 16,
  CGIDataTypeVndWapWbmp = 17,
  CGIDataTypeVndWapWmlc = 18,
  CGIDataTypeVndWapWmlscript = 19,
  CGIDataTypeVndWapWmlscriptc = 20,
  CGIDataTypeScaleVectGraph = 21,
  CGIDataTypeJnl = 22,
  CGIDataTypeImageIcon = 23,
  CGIDataTypeScaleVectGraphZipped = 24
}
 

MIME data type definitions.

More...
enum  rpCgiHttpRequest {
  CgiHttpGet = 1,
  CgiHttpHead = 2,
  CgiHttpPost = 3,
  CgiHttpAll = 255
}
 

HTTP request codes.

More...
enum  rpCgiHttpResponse {
  CgiHttpOk = 0,
  CgiHttpOkStatic = 1,
  CgiHttpRedirect = 2,
  CgiHttpNotModified = 3,
  CgiHttpUnauthorized = 4,
  CgiHttpNotFound = 5,
  CgiHttpOKNoDoc = 6,
  CgiHttpNotAvail = 7,
  CgiHttpSrvError = 8
}
 

HTTP response codes.

More...





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:36 2017 by Doxygen 1.6.1