NCBI C++ ToolKit
Functions | Variables
http_request.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbistr.hpp>
#include <connect/ext/ncbi_localnet.h>
#include <cgi/ncbicgi.hpp>
#include "http_request.hpp"
#include "pubseq_gateway_logging.hpp"
+ Include dependency graph for http_request.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

static bool s_HttpUrlDecode (const char *what, size_t len, char *buf, size_t buf_size, size_t *result_len)
 
string GetIPAddress (struct sockaddr *sock_addr)
 
in_port_t GetPort (struct sockaddr *sock_addr)
 

Variables

static string kPeerSocketPort = "peer_socket_port"
 
static string kPeerSocketIP = "peer_socket_ip"
 
static string kWebCubbyUser = "WebCubbyUser"
 
static string kAdminAuthToken = "AdminAuthToken"
 
static string kCookie = "cookie"
 
static size_t kCookieSize = kCookie.size()
 

Function Documentation

◆ GetIPAddress()

string GetIPAddress ( struct sockaddr *  sock_addr)

◆ GetPort()

in_port_t GetPort ( struct sockaddr *  sock_addr)

Definition at line 467 of file http_request.cpp.

Referenced by CHttpRequest::PrintParams().

◆ s_HttpUrlDecode()

static bool s_HttpUrlDecode ( const char *  what,
size_t  len,
char *  buf,
size_t  buf_size,
size_t *  result_len 
)
static

Definition at line 42 of file http_request.cpp.

References buf, std::end(), and len.

Referenced by CHttpGetParser::Parse().

Variable Documentation

◆ kAdminAuthToken

string kAdminAuthToken = "AdminAuthToken"
static

Definition at line 352 of file http_request.cpp.

Referenced by CHttpRequest::GetAdminAuthToken().

◆ kCookie

string kCookie = "cookie"
static

Definition at line 360 of file http_request.cpp.

Referenced by CHttpRequest::x_GetCookieValue().

◆ kCookieSize

size_t kCookieSize = kCookie.size()
static

Definition at line 361 of file http_request.cpp.

Referenced by CHttpRequest::x_GetCookieValue().

◆ kPeerSocketIP

string kPeerSocketIP = "peer_socket_ip"
static

Definition at line 276 of file http_request.cpp.

Referenced by CHttpRequest::PrintParams().

◆ kPeerSocketPort

string kPeerSocketPort = "peer_socket_port"
static

Definition at line 275 of file http_request.cpp.

Referenced by CHttpRequest::PrintParams().

◆ kWebCubbyUser

string kWebCubbyUser = "WebCubbyUser"
static

Definition at line 344 of file http_request.cpp.

Referenced by CHttpRequest::GetWebCubbyUser().

Modified on Wed Feb 21 09:56:29 2024 by modify_doxy.py rev. 669887