HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NET_HTTPRate Class Reference

#include <NET_RateLimit.h>

Public Types

using func_t = UT_Function< std::pair< int, int >(const UT_StringRef &, const NET_HTTPRequest &)>
 

Public Member Functions

 NET_HTTPRate ()=default
 
 NET_HTTPRate (int count, int seconds)
 
 NET_HTTPRate (func_t &&f)
 

Public Attributes

int myCount = 0
 
int myPeriodS = 0
 
func_t myCustom
 

Detailed Description

Definition at line 32 of file NET_RateLimit.h.

Member Typedef Documentation

using NET_HTTPRate::func_t = UT_Function< std::pair<int, int>(const UT_StringRef&, const NET_HTTPRequest&)>

Definition at line 36 of file NET_RateLimit.h.

Constructor & Destructor Documentation

NET_HTTPRate::NET_HTTPRate ( )
default
NET_HTTPRate::NET_HTTPRate ( int  count,
int  seconds 
)
inline

Definition at line 40 of file NET_RateLimit.h.

NET_HTTPRate::NET_HTTPRate ( func_t &&  f)
inlineexplicit

Definition at line 45 of file NET_RateLimit.h.

Member Data Documentation

int NET_HTTPRate::myCount = 0

Definition at line 47 of file NET_RateLimit.h.

func_t NET_HTTPRate::myCustom

Definition at line 49 of file NET_RateLimit.h.

int NET_HTTPRate::myPeriodS = 0

Definition at line 48 of file NET_RateLimit.h.


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