]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Http.h
MdePkg:Change HTTP API typos.
[mirror_edk2.git] / MdePkg / Include / Protocol / Http.h
index 839e378effe32dbcfea911fcf4faa0e1317bed1d..ad6c76a4c44d79dde798dd91e204e2b1169493b3 100644 (file)
@@ -4,7 +4,7 @@
   HTTP Service Binding Protocol (HTTPSB)\r
   HTTP Protocol (HTTP)\r
 \r
-  Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
   (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -113,7 +113,7 @@ typedef struct {
   ///\r
   /// Set to TRUE to instruct the EFI HTTP instance to use the default address\r
   /// information in every TCP connection made by this instance. In addition, when set\r
-  /// to TRUE, LocalAddress, LocalSubnet, and LocalPort are ignored.\r
+  /// to TRUE, LocalAddress and LocalSubnet are ignored.\r
   ///\r
   BOOLEAN                       UseDefaultAddress;\r
   ///\r
@@ -127,7 +127,7 @@ typedef struct {
   ///\r
   EFI_IPv4_ADDRESS              LocalSubnet;\r
   ///\r
-  /// If UseDefaultAddress is set to FALSE, this defines the local port to be used in\r
+  /// This defines the local port to be used in\r
   /// every TCP connection opened by this instance.\r
   ///\r
   UINT16                        LocalPort;\r
@@ -306,6 +306,12 @@ typedef struct {
 \r
   @retval EFI_SUCCESS             Operation succeeded.\r
   @retval EFI_INVALID_PARAMETER   This is NULL.\r
+                                  HttpConfigData is NULL.\r
+                                  HttpInstance->LocalAddressIsIPv6 is FALSE and\r
+                                  HttpConfigData->IPv4Node is NULL.\r
+                                  HttpInstance->LocalAddressIsIPv6 is TRUE and\r
+                                  HttpConfigData->IPv6Node is NULL.\r
+  @retval EFI_NOT_STARTED         This EFI HTTP Protocol instance has not been started.\r
 **/\r
 typedef\r
 EFI_STATUS\r
@@ -324,8 +330,8 @@ EFI_STATUS
   connections with remote hosts, canceling all asynchronous tokens, and flush request\r
   and response buffers without informing the appropriate hosts.\r
 \r
-  Except for GetModeData() and Configure(), No other EFI HTTP function can be executed\r
-  by this instance until the Configure() function is executed and returns successfully.\r
+  No other EFI HTTP function can be executed by this instance until the Configure()\r
+  function is executed and returns successfully.\r
 \r
   @param[in]  This                Pointer to EFI_HTTP_PROTOCOL instance.\r
   @param[in]  HttpConfigData      Pointer to the configure data to configure the instance.\r
@@ -333,6 +339,7 @@ EFI_STATUS
   @retval EFI_SUCCESS             Operation succeeded.\r
   @retval EFI_INVALID_PARAMETER   One or more of the following conditions is TRUE:\r
                                   This is NULL.\r
+                                  HttpConfigData is NULL.\r
                                   HttpConfigData->LocalAddressIsIPv6 is FALSE and\r
                                   HttpConfigData->IPv4Node is NULL.\r
                                   HttpConfigData->LocalAddressIsIPv6 is TRUE and\r
@@ -367,11 +374,14 @@ EFI_STATUS
   @retval EFI_TIMEOUT             Data was dropped out of the transmit or receive queue.\r
   @retval EFI_INVALID_PARAMETER   One or more of the following conditions is TRUE:\r
                                   This is NULL.\r
+                                  Token is NULL.\r
                                   Token->Message is NULL.\r
                                   Token->Message->Body is not NULL,\r
                                   Token->Message->BodyLength is non-zero, and\r
                                   Token->Message->Data is NULL, but a previous call to\r
                                   Request()has not been completed successfully.\r
+  @retval EFI_OUT_OF_RESOURCES    Could not allocate enough system resources.\r
+  @retval EFI_UNSUPPORTED         The HTTP method is not supported in current implementation.\r
 **/\r
 typedef\r
 EFI_STATUS\r
@@ -397,8 +407,6 @@ EFI_STATUS
   @retval EFI_SUCCESS             Request and Response queues are successfully flushed.\r
   @retval EFI_INVALID_PARAMETER   This is NULL.\r
   @retval EFI_NOT_STARTED         This instance hasn't been configured.\r
-  @retval EFI_NO_MAPPING          When using the default address, configuration (DHCP,\r
-                                  BOOTP, RARP, etc.) hasn't finished yet.\r
   @retval EFI_NOT_FOUND           The asynchronous request or response token is not\r
                                   found.\r
   @retval EFI_UNSUPPORTED         The implementation does not support this function.\r
@@ -412,7 +420,7 @@ EFI_STATUS
 \r
 /**\r
   The Response() function queues an HTTP response to this HTTP instance, similar to\r
-  Receive() function in the EFI TCP driver. When the HTTP request is sent successfully,\r
+  Receive() function in the EFI TCP driver. When the HTTP Response is received successfully,\r
   or if there is an error, Status in token will be updated and Event will be signaled.\r
 \r
   The HTTP driver will queue a receive token to the underlying TCP instance. When data\r
@@ -446,12 +454,14 @@ EFI_STATUS
                                   initialized.\r
   @retval EFI_INVALID_PARAMETER   One or more of the following conditions is TRUE:\r
                                   This is NULL.\r
+                                  Token is NULL.\r
                                   Token->Message->Headers is NULL.\r
                                   Token->Message is NULL.\r
                                   Token->Message->Body is not NULL,\r
                                   Token->Message->BodyLength is non-zero, and\r
                                   Token->Message->Data is NULL, but a previous call to\r
                                   Response() has not been completed successfully.\r
+  @retval EFI_OUT_OF_RESOURCES    Could not allocate enough system resources.\r
   @retval EFI_ACCESS_DENIED       An open TCP connection is not present with the host\r
                                   specified by response URL.\r
 **/\r
@@ -479,6 +489,7 @@ EFI_STATUS
   @retval EFI_DEVICE_ERROR        An unexpected system or network error occurred\r
   @retval EFI_INVALID_PARAMETER   This is NULL.\r
   @retval EFI_NOT_READY           No incoming or outgoing data is processed.\r
+  @retval EFI_NOT_STARTED         This EFI HTTP Protocol instance has not been started.\r
 **/\r
 typedef\r
 EFI_STATUS\r