HttpResponseMessage_m¶
Namespace: simu5g
class HttpResponseMessage_m
Message class for HTTP replies
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) |
code |
int |
e.g. 200 |
status |
string |
e.g. OK |
Properties¶
Name |
Value |
Description |
|---|---|---|
beforeChange |
handleChange() |
|
descriptor |
readonly |
|
existingClass |
||
packetData |
Source code¶
//
// Message class for HTTP replies
//
class HttpResponseMessage_m extends HttpBaseMessage
{
int code; // e.g. 200
string status; // e.g. OK
}
File: src/simu5g/mec/platform/services/messages/HttpMessages.msg