include/alp/http_const.h File Reference


Detailed Description

HTTP library constants and enums.

>

Go to the source code of this file.

Defines

#define HTTP_FALSE   0
#define HTTP_TRUE   (!HTTP_FALSE)
#define httpIPAddrTypeV4   4
#define httpPostMULTIPART   0x00000004
#define httpPostPLAINTEXT   0x00000002
#define httpPostURLENCODED   0x00000001
#define httpSSLFlagConnTLS   0x00000004
#define httpSSLFlagConnV2   0x00000001
#define httpSSLFlagConnV2TLS   (httpSSLFlagConnV2 | httpSSLFlagConnTLS)
#define httpSSLFlagConnV2V3   (httpSSLFlagConnV2 | httpSSLFlagConnV3)
#define httpSSLFlagConnV2V3TLS   (httpSSLFlagConnV2 | httpSSLFlagConnV3 | httpSSLFlagConnTLS)
#define httpSSLFlagConnV3   0x00000002
#define httpSSLFlagConnV3TLS   (httpSSLFlagConnV3 | httpSSLFlagConnTLS)
#define httpStreamRead   0x00000001
#define httpStreamReadWrite   (httpStreamRead|httpStreamWrite)
#define httpStreamTextCRCR   "\015\015"
#define httpStreamTextCRLF   "\015\012"
#define httpStreamTextCRLFCRLF   "\015\012\015\012"
#define httpStreamTextLFLF   "\012\012"
#define httpStreamWrite   0x00000002

Typedefs

typedef enum _AlpHttpAuthTarget AlpHttpAuthTargetEnum
typedef enum _AlpHttpAuthType AlpHttpAuthTypeEnum
typedef enum _AlpHttpCookie AlpHttpCookieEnum
typedef enum _AlpHttpError AlpHttpErrorEnum
typedef enum _AlpHttpHeaderID AlpHttpHeaderIDEnum
typedef enum _AlpHttpMethod AlpHttpMethodEnum
typedef enum _AlpHttpScheme AlpHttpSchemeEnum
typedef enum _AlpHttpStatusCode AlpHttpStatusCodeEnum
typedef enum _AlpHttpStreamState AlpHttpStreamStateEnum
typedef enum _AlpHttpVersion AlpHttpVersionEnum

Enumerations

enum  { httpDNSModeIPV4Only = 0 }
 Const for DNS mode. More...
enum  {
  httpCertDNCountryName = 0, httpCertDNStateOrProvinceName, httpCertDNLocalityName, httpCertDNStreetAddress,
  httpCertDNOrganizationName, httpCertDNOrganizationUnitName, httpCertDNCommonName, httpCertDNEmailAddress,
  httpCertDNAttributs
}
 Constants for Certificate's Attribute. More...
enum  {
  httpCertListTypeUnknown = 0, httpCertListTypeServer, httpCertListTypeClient, httpCertListTypeBrowser,
  httpCertListTypeTypes
}
 Constants for CertList Type. More...
enum  {
  httpCertListEOK = 0, httpCertListEGeneric = -1, httpCertListENoMem = -2, httpCertListESame = -3,
  httpCertListEDecode = -4, httpCertListEFull = -5
}
 Constans for CertList error type. More...
enum  _AlpHttpAuthTarget { httpAuthTargetPage = 0, httpAuthTargetProxy, httpAuthTargetTargets }
 Const for HTTP Access Authentication target. More...
enum  _AlpHttpAuthType { httpAuthTypeNone = -1, httpAuthTypeBasic = 0, httpAuthTypeDigest, httpAuthTypeTypes }
 Const for HTTP Authentication type. More...
enum  _AlpHttpCookie { httpCookieNotifyBeforeSet = 0, httpCookieAlwaysSet, httpCookieNeverSet }
 Constant for cookie mode. More...
enum  _AlpHttpError {
  httpErrorOK = 0, httpErrorGeneric = -1, httpErrorWouldBlock = -2, httpErrorIOSleep = -3,
  httpErrorNoMem = -6, httpErrorStrPipe = -7, httpErrorInval = -8, httpErrorEOF = -9,
  httpErrorNotSupported = -10, httpErrorDNSInval = -200, httpErrorDNSNoServer, httpErrorDNSTimedout,
  httpErrorDNSNotFound, httpErrorTCPOpen, httpErrorTCPConnect, httpErrorTCPRead,
  httpErrorTCPWrite, httpErrorSSLConnect, httpErrorSSLHandShake, httpErrorSSLRead,
  httpErrorSSLWrite, httpErrorReqTimedout, httpErrorRspTimedout, httpErrorCacheNone,
  httpErrorCacheExpire, httpErrorAuthUnknown, httpErrorAuthNoHeader, httpErrorAuthFormat,
  httpErrorAuthIgnored, httpErrorRedirectFormat, httpErrorRedirectCanceled, httpErrorRedirectIgnored,
  httpErrorReqHeaderSizeOver, httpErrorReqBodySizeOver, httpErrorRspHeaderSizeOver, httpErrorReqTooManyContinue,
  httpErrorTLSIntolerant
}
 Constant for HTTP Library APIs error return code. More...
enum  _AlpHttpHeaderID {
  httpHeaderIDCacheControl, httpHeaderIDConnection, httpHeaderIDDate, httpHeaderIDPragma,
  httpHeaderIDTrailer, httpHeaderIDTransferEncoding, httpHeaderIDUpgrade, httpHeaderIDVia,
  httpHeaderIDWarning, httpHeaderIDKeepAlive, httpHeaderIDProxyConnection, httpHeaderIDAccept,
  httpHeaderIDAcceptCharset, httpHeaderIDAcceptEncoding, httpHeaderIDAcceptLanguage, httpHeaderIDAuthorization,
  httpHeaderIDExpect, httpHeaderIDFrom, httpHeaderIDHost, httpHeaderIDIfMatch,
  httpHeaderIDIfModifiedSince, httpHeaderIDIfNoneMatch, httpHeaderIDIfRange, httpHeaderIDIfUnmodifiedSince,
  httpHeaderIDMaxForwards, httpHeaderIDProxyAuthorization, httpHeaderIDRange, httpHeaderIDReferer,
  httpHeaderIDTE, httpHeaderIDUserAgent, httpHeaderIDCookie, httpHeaderIDAcceptRanges,
  httpHeaderIDAge, httpHeaderIDETag, httpHeaderIDLocation, httpHeaderIDProxyAuthenticate,
  httpHeaderIDRetryAfter, httpHeaderIDServer, httpHeaderIDVary, httpHeaderIDWWWAuthenticate,
  httpHeaderIDSetCookie, httpHeaderIDAuthenticationInfo, httpHeaderIDProxyAuthenticationInfo, httpHeaderIDAllow,
  httpHeaderIDContentEncoding, httpHeaderIDContentDisposition, httpHeaderIDContentLanguage, httpHeaderIDContentLength,
  httpHeaderIDContentLocation, httpHeaderIDContentMD5, httpHeaderIDContentRange, httpHeaderIDContentType,
  httpHeaderIDExpires, httpHeaderIDLastModified, httpHeaderIDRefresh, httpHeaderIDENUMS
}
 Constant for HTTP Header ID. More...
enum  _AlpHttpMethod { httpMethodGET = 1, httpMethodPOST = 3, httpMethodMethods }
 Constant for http method. More...
enum  _AlpHttpScheme { httpSchemeHTTP = 0, httpSchemeHTTPS, httpSchemeSchemes }
 Constant for http stream protocol scheme. More...
enum  _AlpHttpStatusCode {
  httpStatusCodeContinue = 100, httpStatusCodeSwitchingProtocols = 101, httpStatusCodeOK = 200, httpStatusCodeCreated = 201,
  httpStatusCodeAccepted = 202, httpStatusCodeNonAuthoritativeInformation = 203, httpStatusCodeNoContent = 204, httpStatusCodeResetContent = 205,
  httpStatusCodePartialContent = 206, httpStatusCodeMultipleChoices = 300, httpStatusCodeMovedPermanently = 301, httpStatusCodeFound = 302,
  httpStatusCodeSeeOther = 303, httpStatusCodeNotModified = 304, httpStatusCodeUseProxy = 305, httpStatusCodeTemporaryRedirect = 307,
  httpStatusCodeBadRequest = 400, httpStatusCodeUnauthorized = 401, httpStatusCodePaymentRequired = 402, httpStatusCodeForbidden = 403,
  httpStatusCodeNotFound = 404, httpStatusCodeMethodNotAllowed = 405, httpStatusCodeNotAcceptable = 406, httpStatusCodeProxyAuthenticationRequired = 407,
  httpStatusCodeRequestTimeout = 408, httpStatusCodeConflict = 409, httpStatusCodeGone = 410, httpStatusCodeLengthRequired = 411,
  httpStatusCodePreconditionFailed = 412, httpStatusCodeRequestEntityTooLarge = 413, httpStatusCodeRequestURITooLarge = 414, httpStatusCodeUnsupportedMediaType = 415,
  httpStatusCodeRequestedRangeNotSatisfiable = 416, httpStatusCodeExpectationFailed = 417, httpStatusCodeInternalServerError = 500, httpStatusCodeNotImplemented = 501,
  httpStatusCodeBadGateway = 502, httpStatusCodeServiceUnavailable = 503, httpStatusCodeGatewayTimeout = 504, httpStatusCodeHTTPVersionNotSupported = 505
}
 Constant for http status code. More...
enum  _AlpHttpStreamState {
  httpStreamStateNew = 0, httpStreamStateDormant, httpStreamStateReqCreated, httpStreamStateReqResolve,
  httpStreamStateReqResolving, httpStreamStateReqOpen, httpStreamStateReqConnect, httpStreamStateReqConnecting,
  httpStreamStateReqProxyConnect, httpStreamStateReqProxyConnecting, httpStreamStateReqSSLHandShaking, httpStreamStateReqSSLHandShaked,
  httpStreamStateReqSending, httpStreamStateReqSent, httpStreamStateRspHeaderWaiting, httpStreamStateRspContinue,
  httpStreamStateRspHeaderReceiving, httpStreamStateRspHeaderReceived, httpStreamStateRspEntityReceiving, httpStreamStateRspEntityReceived,
  httpStreamStateObsolete, httpStreamStateDelete, httpStreamStateStates
}
 Constant for http stream state. More...
enum  _AlpHttpVersion { httpVersion_0_9 = 0, httpVersion_1_0, httpVersion_1_1, httpVersionVersions }
 Constant for http version. More...


Generated on Wed Jul 30 07:06:40 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.