X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FInclude%2FLibrary%2FHttpLib.h;h=d3d7735d89e9ef83c42cdb49c2a30098568ebea4;hb=d1102dba7210b95e41d06c2338a22ba6af248645;hp=88b56ae1cebd3ce98b2c66840aaf1813c2ea4252;hpb=0efeec8e20e9bf13e5c82622f536df0c13abe331;p=mirror_edk2.git diff --git a/MdeModulePkg/Include/Library/HttpLib.h b/MdeModulePkg/Include/Library/HttpLib.h index 88b56ae1ce..d3d7735d89 100644 --- a/MdeModulePkg/Include/Library/HttpLib.h +++ b/MdeModulePkg/Include/Library/HttpLib.h @@ -2,7 +2,7 @@ This library is used to share code between UEFI network stack modules. It provides the helper routines to parse the HTTP message byte stream. -Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.
+Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -22,10 +22,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. /** Decode a percent-encoded URI component to the ASCII character. - - Decode the input component in Buffer according to RFC 3986. The caller is responsible to make + + Decode the input component in Buffer according to RFC 3986. The caller is responsible to make sure ResultBuffer points to a buffer with size equal or greater than ((AsciiStrSize (Buffer)) - in bytes. + in bytes. @param[in] Buffer The pointer to a percent-encoded URI component. @param[in] BufferLength Length of Buffer in bytes. @@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. @retval EFI_SUCCESS Successfully decoded the URI. @retval EFI_INVALID_PARAMETER Buffer is not a valid percent-encoded string. - + **/ EFI_STATUS EFIAPI @@ -61,7 +61,7 @@ UriPercentDecode ( @retval EFI_SUCCESS Successfully dereferenced the HTTP URL. @retval EFI_INVALID_PARAMETER UrlParser is NULL or Url is not a valid HTTP URL. @retval EFI_OUT_OF_RESOURCES Could not allocate needed resources. - + **/ EFI_STATUS EFIAPI @@ -86,7 +86,7 @@ HttpParseUrl ( @retval EFI_INVALID_PARAMETER Uri is NULL or HostName is NULL or UrlParser is invalid. @retval EFI_NOT_FOUND No hostName component in the URL. @retval EFI_OUT_OF_RESOURCES Could not allocate needed resources. - + **/ EFI_STATUS EFIAPI @@ -109,7 +109,7 @@ HttpUrlGetHostName ( @retval EFI_INVALID_PARAMETER Uri is NULL or Ip4Address is NULL or UrlParser is invalid. @retval EFI_NOT_FOUND No IPv4 address component in the URL. @retval EFI_OUT_OF_RESOURCES Could not allocate needed resources. - + **/ EFI_STATUS EFIAPI @@ -132,7 +132,7 @@ HttpUrlGetIp4 ( @retval EFI_INVALID_PARAMETER Uri is NULL or Ip6Address is NULL or UrlParser is invalid. @retval EFI_NOT_FOUND No IPv6 address component in the URL. @retval EFI_OUT_OF_RESOURCES Could not allocate needed resources. - + **/ EFI_STATUS EFIAPI @@ -155,7 +155,7 @@ HttpUrlGetIp6 ( @retval EFI_INVALID_PARAMETER Uri is NULL or Port is NULL or UrlParser is invalid. @retval EFI_NOT_FOUND No port number in the URL. @retval EFI_OUT_OF_RESOURCES Could not allocate needed resources. - + **/ EFI_STATUS EFIAPI @@ -179,7 +179,7 @@ HttpUrlGetPort ( @retval EFI_INVALID_PARAMETER Uri is NULL or HostName is NULL or UrlParser is invalid. @retval EFI_NOT_FOUND No hostName component in the URL. @retval EFI_OUT_OF_RESOURCES Could not allocate needed resources. - + **/ EFI_STATUS EFIAPI @@ -193,7 +193,7 @@ HttpUrlGetPath ( Release the resource of the URL parser. @param[in] UrlParser Pointer to the parser. - + **/ VOID EFIAPI @@ -231,7 +231,7 @@ typedef enum { @retval EFI_SUCCESS Continue to parser the message body. @retval Others Abort the parse. - + **/ typedef EFI_STATUS @@ -286,7 +286,8 @@ HttpInitMsgParser ( @retval EFI_SUCCESS Successfully parse the message-body. @retval EFI_INVALID_PARAMETER MsgParser is NULL or Body is NULL or BodyLength is 0. - @retval Others Operation aborted. + @retval EFI_ABORTED Operation aborted. + @retval Other Error happened while parsing message body. **/ EFI_STATUS @@ -323,7 +324,7 @@ HttpIsMessageComplete ( @retval EFI_SUCCESS Successfully to get the entity length. @retval EFI_NOT_READY Entity length is not valid yet. @retval EFI_INVALID_PARAMETER MsgParser is NULL or ContentLength is NULL. - + **/ EFI_STATUS EFIAPI @@ -336,7 +337,7 @@ HttpGetEntityLength ( Release the resource of the message parser. @param[in] MsgParser Pointer to the message parser. - + **/ VOID EFIAPI @@ -433,9 +434,9 @@ HttpFreeHeaderFields ( NULL if any error occured. @param[out] RequestMsgSize Size of the RequestMsg (in bytes). - @return EFI_SUCCESS If HTTP request string was created successfully + @retval EFI_SUCCESS If HTTP request string was created successfully. @retval EFI_OUT_OF_RESOURCES Failed to allocate resources. - @retval EFI_INVALID_PARAMETER The input arguments are invalid + @retval EFI_INVALID_PARAMETER The input arguments are invalid. **/ EFI_STATUS