mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-14 22:19:14 +00:00
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8545 d0543943-73ff-0310-b7d9-9358b9ac24b2
55 lines
1.3 KiB
C
55 lines
1.3 KiB
C
#ifndef HTTP_H_INCLUDED
|
|
#define HTTP_H_INCLUDED
|
|
|
|
#include "bool.h"
|
|
#include "conn.h"
|
|
|
|
/*********************************************************************
|
|
** Request
|
|
*********************************************************************/
|
|
|
|
bool RequestValidURI(TSession * const r);
|
|
bool RequestValidURIPath(TSession * const r);
|
|
bool RequestUnescapeURI(TSession *r);
|
|
|
|
void
|
|
RequestRead(TSession * const sessionP,
|
|
uint32_t const timeout);
|
|
|
|
void RequestInit(TSession * const r,TConn * const c);
|
|
void RequestFree(TSession * const r);
|
|
|
|
bool
|
|
RequestAuth(TSession * const sessionP,
|
|
const char * const credential,
|
|
const char * const user,
|
|
const char * const pass);
|
|
|
|
/*********************************************************************
|
|
** HTTP
|
|
*********************************************************************/
|
|
|
|
const char *
|
|
HTTPReasonByStatus(uint16_t const code);
|
|
|
|
int32_t
|
|
HTTPRead(TSession * const sessionP,
|
|
const char * const buffer,
|
|
uint32_t const len);
|
|
|
|
bool
|
|
HTTPWriteBodyChunk(TSession * const sessionP,
|
|
const char * const buffer,
|
|
uint32_t const len);
|
|
|
|
bool
|
|
HTTPWriteEndChunk(TSession * const sessionP);
|
|
|
|
bool
|
|
HTTPKeepalive(TSession * const sessionP);
|
|
|
|
bool
|
|
HTTPWriteContinue(TSession * const sessionP);
|
|
|
|
#endif
|