2022-08-21 00:40:49 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2024-04-26 17:32:25 +02:00
<class name= "HTTPSession" inherits= "Reference" version= "4.4" >
2022-08-21 00:40:49 +02:00
<brief_description >
2022-08-21 03:02:11 +02:00
The HTTPSession class represents a user's session.
2022-08-21 00:40:49 +02:00
</brief_description>
<description >
2022-08-21 03:02:11 +02:00
The HTTPSession class represents a user's session. It can store any kind data thanks to Variants. It's used by [HTTPSessionManager] in tandem with cookies to provide per session data storage facilities.
It contains a mutex, because a session / user can make more than one queries to a server at once (For example by opening multiple tabs in a browser), and these are handled by the framework asynchronously.
2022-08-21 00:40:49 +02:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "add" >
<return type= "void" />
<argument index= "0" name= "key" type= "String" />
<argument index= "1" name= "value" type= "Variant" />
<description >
</description>
</method>
<method name= "clear" >
<return type= "void" />
<description >
</description>
</method>
<method name= "get_value" >
<return type= "Variant" />
<argument index= "0" name= "key" type= "String" />
<description >
</description>
</method>
<method name= "has" >
<return type= "bool" />
<argument index= "0" name= "key" type= "String" />
<description >
</description>
</method>
<method name= "remove" >
<return type= "void" />
<argument index= "0" name= "key" type= "String" />
<description >
</description>
</method>
<method name= "reset" >
<return type= "void" />
<description >
</description>
</method>
</methods>
<members >
<member name= "id" type= "int" setter= "set_id" getter= "get_id" default= "0" >
</member>
<member name= "session_id" type= "String" setter= "set_session_id" getter= "get_session_id" default= """" >
</member>
</members>
<constants >
</constants>
</class>