NetworkPkg: Avoid memory allocation for each HTTP message exchange.
[mirror_edk2.git] / NetworkPkg / HttpDxe / HttpProto.h
index ca4b7b60353d24ee36cb7af70deacd3486cec3e7..c37b80c8ec745d62e5f2a34ba2c227757ed0fcbe 100644 (file)
@@ -51,6 +51,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define HTTP_KEEP_ALIVE_TIME         7200\r
 #define HTTP_KEEP_ALIVE_INTERVAL     30\r
 \r
+#define HTTP_URL_BUFFER_LEN          4096\r
+\r
 typedef struct _HTTP_SERVICE {\r
   UINT32                        Signature;\r
   EFI_SERVICE_BINDING_PROTOCOL  ServiceBinding;\r
@@ -120,6 +122,8 @@ typedef struct _HTTP_PROTOCOL {
 \r
   NET_MAP                       TxTokens;\r
   NET_MAP                       RxTokens;\r
+\r
+  CHAR8                         *Url;\r
 } HTTP_PROTOCOL;\r
 \r
 typedef struct {\r