PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
happyhttp.h File Reference
#include <string>
#include <map>
#include <vector>
#include <deque>

Go to the source code of this file.

Classes

class  happyhttp::Wobbly
 
class  happyhttp::Connection
 
class  happyhttp::Response
 

Namespaces

namespace  happyhttp
 

Typedefs

typedef void(* happyhttp::ResponseBegin_CB) (const Response *r, void *userdata)
 
typedef void(* happyhttp::ResponseData_CB) (const Response *r, void *userdata, const unsigned char *data, int numbytes)
 
typedef void(* happyhttp::ResponseComplete_CB) (const Response *r, void *userdata)
 

Enumerations

enum  {
  happyhttp::CONTINUE = 100 , happyhttp::SWITCHING_PROTOCOLS = 101 , happyhttp::PROCESSING = 102 , happyhttp::OK = 200 ,
  happyhttp::CREATED = 201 , happyhttp::ACCEPTED = 202 , happyhttp::NON_AUTHORITATIVE_INFORMATION = 203 , happyhttp::NO_CONTENT = 204 ,
  happyhttp::RESET_CONTENT = 205 , happyhttp::PARTIAL_CONTENT = 206 , happyhttp::MULTI_STATUS = 207 , happyhttp::IM_USED = 226 ,
  happyhttp::MULTIPLE_CHOICES = 300 , happyhttp::MOVED_PERMANENTLY = 301 , happyhttp::FOUND = 302 , happyhttp::SEE_OTHER = 303 ,
  happyhttp::NOT_MODIFIED = 304 , happyhttp::USE_PROXY = 305 , happyhttp::TEMPORARY_REDIRECT = 307 , happyhttp::BAD_REQUEST = 400 ,
  happyhttp::UNAUTHORIZED = 401 , happyhttp::PAYMENT_REQUIRED = 402 , happyhttp::FORBIDDEN = 403 , happyhttp::NOT_FOUND = 404 ,
  happyhttp::METHOD_NOT_ALLOWED = 405 , happyhttp::NOT_ACCEPTABLE = 406 , happyhttp::PROXY_AUTHENTICATION_REQUIRED = 407 , happyhttp::REQUEST_TIMEOUT = 408 ,
  happyhttp::CONFLICT = 409 , happyhttp::GONE = 410 , happyhttp::LENGTH_REQUIRED = 411 , happyhttp::PRECONDITION_FAILED = 412 ,
  happyhttp::REQUEST_ENTITY_TOO_LARGE = 413 , happyhttp::REQUEST_URI_TOO_LONG = 414 , happyhttp::UNSUPPORTED_MEDIA_TYPE = 415 , happyhttp::REQUESTED_RANGE_NOT_SATISFIABLE = 416 ,
  happyhttp::EXPECTATION_FAILED = 417 , happyhttp::UNPROCESSABLE_ENTITY = 422 , happyhttp::LOCKED = 423 , happyhttp::FAILED_DEPENDENCY = 424 ,
  happyhttp::UPGRADE_REQUIRED = 426 , happyhttp::INTERNAL_SERVER_ERROR = 500 , happyhttp::NOT_IMPLEMENTED = 501 , happyhttp::BAD_GATEWAY = 502 ,
  happyhttp::SERVICE_UNAVAILABLE = 503 , happyhttp::GATEWAY_TIMEOUT = 504 , happyhttp::HTTP_VERSION_NOT_SUPPORTED = 505 , happyhttp::INSUFFICIENT_STORAGE = 507 ,
  happyhttp::NOT_EXTENDED = 510
}
 

Functions

void happyhttp::BailOnSocketError (const char *context)
 
struct in_addr * happyhttp::atoaddr (const char *address)