diff options
author | Nagaraj Hegde <nagaraj-p.hegde@hpe.com> | 2016-05-06 18:20:00 +0800 |
---|---|---|
committer | Fu Siyuan <siyuan.fu@intel.com> | 2016-05-16 14:22:33 +0800 |
commit | d8293d31416242468323ef30c6fa2a5bf6267996 (patch) | |
tree | 1087d93ea337f900c8c4fdae71dd7de2da151b82 /NetworkPkg/HttpDxe/HttpProto.h | |
parent | bfba88bc68eed24c71ff500b740c3f563531d49c (diff) | |
download | edk2-d8293d31416242468323ef30c6fa2a5bf6267996.zip edk2-d8293d31416242468323ef30c6fa2a5bf6267996.tar.gz edk2-d8293d31416242468323ef30c6fa2a5bf6267996.tar.bz2 |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/NetworkPkg/HttpDxe/HttpProto.h b/NetworkPkg/HttpDxe/HttpProto.h index 8b47fe0..cdad5b0 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;
|