Namespace simu5g
HttpBaseMessage
classBase class for HTTP messages
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
Name | Type | Description |
---|---|---|
FieldsChunk | class | (no description) |
Fields
Name | Type | Description |
---|---|---|
sockId | int |
socket Id used to retrieve the tcp socket objects from the map |
state | HttpRequestState |
used to respond with the correct HTTP response |
isReceivingMsg | bool |
flag used for HTTP msgs within more TCP segments |
type | HttpMsgType |
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) |
Source code
// // Base class for HTTP messages // class HttpBaseMessage extends inet::FieldsChunk { int sockId; // socket Id used to retrieve the tcp socket objects from the map HttpRequestState state; // used to respond with the correct HTTP response bool isReceivingMsg; // flag used for HTTP msgs within more TCP segments HttpMsgType type; // REQUEST or RESPONSE or UNKNOWN string body; // body of the HTTp message if present string httpProtocol = "HTTP/1.1"; // http protocol, defaul HTTP/1.1 int contentLength; // Content-Length header int remainingDataToRecv; // Counter for HTTP msg within more TCP segments string contentType = "application/json"; // Content-Type header string connection = "keep-alive"; // Connection header simtime_t arrivalTime = 0; // Point in time when the messagge arrives (used by the Service to calculate response time) }File: src/nodes/mec/MECPlatform/MECServices/packets/HttpMessages.msg