Public Member Functions

FetchSM Class Reference

#include <FetchSM.h>

Inherits Continuation.

Collaboration diagram for FetchSM:
Collaboration graph
[legend]

Public Member Functions

 FetchSM ()
void init_comm ()
void init (Continuation *cont, TSFetchWakeUpOptions options, TSFetchEvent events, const char *headers, int length, sockaddr const *addr)
int fetch_handler (int event, void *data)
void process_fetch_read (int event)
void process_fetch_write (int event)
void httpConnect ()
void cleanUp ()
void get_info_from_buffer (IOBufferReader *reader)
char * resp_get (int *length)
TSMBuffer resp_hdr_bufp ()
TSMLoc resp_hdr_mloc ()
void ext_init (Continuation *cont, const char *method, const char *url, const char *version, const sockaddr *client_addr, int flags)
void ext_add_header (const char *name, int name_len, const char *value, int value_len)
void ext_lanuch ()
void ext_destroy ()
ssize_t ext_read_data (char *buf, size_t len)
void ext_write_data (const void *data, size_t len)
void ext_set_user_data (void *data)
void * ext_get_user_data ()
bool get_internal_request ()
void set_internal_request (bool val)

Detailed Description

Definition at line 40 of file FetchSM.h.


Constructor & Destructor Documentation

FetchSM::FetchSM (  )  [inline]

Definition at line 43 of file FetchSM.h.


Member Function Documentation

void FetchSM::cleanUp ( void   ) 
void FetchSM::ext_add_header ( const char *  name,
int  name_len,
const char *  value,
int  value_len 
)
void FetchSM::ext_destroy (  ) 
void * FetchSM::ext_get_user_data (  ) 

Definition at line 625 of file FetchSM.cc.

void FetchSM::ext_init ( Continuation cont,
const char *  method,
const char *  url,
const char *  version,
const sockaddr *  client_addr,
int  flags 
)
void FetchSM::ext_lanuch (  ) 

Definition at line 527 of file FetchSM.cc.

References httpConnect(), and MIOBuffer::write().

ssize_t FetchSM::ext_read_data ( char *  buf,
size_t  len 
)
void FetchSM::ext_set_user_data ( void *  data  ) 

Definition at line 619 of file FetchSM.cc.

void FetchSM::ext_write_data ( const void *  data,
size_t  len 
)
int FetchSM::fetch_handler ( int  event,
void *  data 
)
void FetchSM::get_info_from_buffer ( IOBufferReader reader  ) 
bool FetchSM::get_internal_request (  )  [inline]

Definition at line 123 of file FetchSM.h.

void FetchSM::httpConnect (  ) 
void FetchSM::init ( Continuation cont,
TSFetchWakeUpOptions  options,
TSFetchEvent  events,
const char *  headers,
int  length,
sockaddr const *  addr 
) [inline]
void FetchSM::init_comm (  )  [inline]
void FetchSM::process_fetch_read ( int  event  ) 
void FetchSM::process_fetch_write ( int  event  ) 
char * FetchSM::resp_get ( int *  length  ) 

Definition at line 80 of file FetchSM.cc.

Referenced by TSFetchRespGet().

TSMBuffer FetchSM::resp_hdr_bufp (  ) 

Definition at line 631 of file FetchSM.cc.

TSMLoc FetchSM::resp_hdr_mloc (  ) 

Definition at line 640 of file FetchSM.cc.

References HTTPHdr::m_http.

void FetchSM::set_internal_request ( bool  val  )  [inline]

Definition at line 124 of file FetchSM.h.

Referenced by ext_init().


The documentation for this class was generated from the following files: