HttpRequestMessage_m¶
Namespace: simu5g
class HttpRequestMessage_m
Message class for HTTP requests
Inheritance diagram¶
Extends¶
Name |
Type |
Description |
|---|---|---|
class |
Base class for HTTP messages |
Fields¶
Name |
Type |
Description |
|---|---|---|
id |
int |
|
mutable |
bool |
|
complete |
bool |
|
correct |
bool |
|
properlyRepresented |
bool |
|
chunkLength |
b |
|
rawBin |
string[] |
|
rawHex |
string[] |
|
regionTags |
SharingRegionTagSet::TagBaseRegionTag[] |
|
sockId |
int |
socket Id used to retrieve the tcp socket objects from the map |
state |
used to respond with the correct HTTP response |
|
isReceivingMsg |
bool |
flag used for HTTP msgs within more TCP segments |
type |
REQUEST or RESPONSE or UNKNOWN |
|
body |
string |
body of the HTTp message if present |
httpProtocol |
string |
http protocol, defaul HTTP/1.1 |
contentLength |
int |
Content-Length header |
remainingDataToRecv |
int |
Counter for HTTP msg within more TCP segments |
contentType |
string |
Content-Type header |
connection |
string |
Connection header |
arrivalTime |
simtime_t |
Point in time when the messagge arrives (used by the Service to calculate response time) |
method |
string |
|
parameters |
string |
|
uri |
string |
|
host |
string |
Host header for POST requests |
responseTime |
double |
used by the ServiceBase when the load generator flag is set |
Properties¶
Name |
Value |
Description |
|---|---|---|
beforeChange |
handleChange() |
|
descriptor |
readonly |
|
existingClass |
||
packetData |
Source code¶
////
// Message class for HTTP requests
//
class HttpRequestMessage_m extends HttpBaseMessage
{
string method;
string parameters;
string uri;
string host=""; // Host header for POST requests
double responseTime = 0; // used by the ServiceBase when the load generator flag is set
}
File: src/simu5g/mec/platform/services/messages/HttpMessages.msg