summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/HttpDxe/HttpProto.h
diff options
context:
space:
mode:
authorNagaraj Hegde <nagaraj-p.hegde@hpe.com>2016-05-06 18:20:00 +0800
committerFu Siyuan <siyuan.fu@intel.com>2016-05-16 14:22:33 +0800
commitd8293d31416242468323ef30c6fa2a5bf6267996 (patch)
tree1087d93ea337f900c8c4fdae71dd7de2da151b82 /NetworkPkg/HttpDxe/HttpProto.h
parentbfba88bc68eed24c71ff500b740c3f563531d49c (diff)
downloadedk2-d8293d31416242468323ef30c6fa2a5bf6267996.tar.gz
edk2-d8293d31416242468323ef30c6fa2a5bf6267996.tar.bz2
edk2-d8293d31416242468323ef30c6fa2a5bf6267996.zip
NetworkPkg:HttpDxe: Code changes to support HTTP PUT/POST operations
Code changes enables HttpDxe to handle PUT/POST operations. EfiHttpRequest assumes "Request" and "HttpMsg->Headers" can never be NULL. Also, HttpResponseWorker assumes HTTP Reponse will contain headers. We could have response which could contain only a string (HTTP 100 Continue) and no headers. Code changes tries to do-away from these assumptions, which would enable HttpDxe to support PUT/POST operations. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hegde, Nagaraj P nagaraj-p.hegde@hpe.com Reviewed-By: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Diffstat (limited to 'NetworkPkg/HttpDxe/HttpProto.h')
-rw-r--r--NetworkPkg/HttpDxe/HttpProto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/NetworkPkg/HttpDxe/HttpProto.h b/NetworkPkg/HttpDxe/HttpProto.h
index 8b47fe00f6..cdad5b0e48 100644
--- a/NetworkPkg/HttpDxe/HttpProto.h
+++ b/NetworkPkg/HttpDxe/HttpProto.h
@@ -91,6 +91,7 @@ typedef struct _HTTP_PROTOCOL {
LIST_ENTRY Link; // Link to all HTTP instance from the service.
BOOLEAN InDestroy;
INTN State;
+ EFI_HTTP_METHOD Method;
UINTN StatusCode;