TianoCore EDK2 master
Loading...
Searching...
No Matches
Http.c File Reference
#include "Http.h"

Go to the source code of this file.

Macros

#define IP4_CONFIG2_INTERFACE_INFO_NAME_LENGTH   32
 
#define HTTP_PROGRESS_SLIDER_STEPS    ((sizeof (HTTP_PROGR_FRAME) / sizeof (CHAR16)) - 3)
 
#define HTTP_PROGRESS_MESSAGE_SIZE    ((sizeof (HTTP_PROGR_FRAME) / sizeof (CHAR16)) + 12)
 
#define DEFAULT_BUF_SIZE   SIZE_32KB
 
#define MAX_BUF_SIZE   SIZE_4MB
 
#define MIN_PARAM_COUNT   2
 
#define MAX_PARAM_COUNT   4
 
#define NEED_REDIRECTION(Code)
 
#define CLOSE_HTTP_HANDLE(ControllerHandle, HttpChildHandle)
 
#define USER_AGENT_HDR   "Mozilla/5.0 (EDK2; Linux) Gecko/20100101 Firefox/79.0"
 
#define TIMER_MAX_TIMEOUT_S   10
 
#define DEFAULT_HTML_FILE   L"index.html"
 
#define DEFAULT_HTTP_PROTO   L"http"
 
#define HTTP_PROGRESS_DEL    L"\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b"
 
#define HTTP_KB   L"\b\b\b\b\b\b\b\b\b\b"
 
#define HTTP_PROGR_FRAME   L"[ ]"
 
#define PRINT_HII(token, ...)
 
#define PRINT_HII_APP(token, value)    PRINT_HII (token, HTTP_APP_NAME, value)
 
#define EPOCH_JULIAN_DATE   2440588
 
#define SEC_PER_MIN   ((UINTN) 60)
 
#define SEC_PER_HOUR   ((UINTN) 3600)
 
#define SEC_PER_DAY   ((UINTN) 86400)
 

Enumerations

enum  HDR_TYPE { HdrHost , HdrConn , HdrAgent , HdrMax }
 

Functions

STATIC BOOLEAN StringToUint16 (IN CONST CHAR16 *ValueStr, OUT UINT16 *Value)
 
STATIC EFI_STATUS GetNicName (IN EFI_HANDLE ControllerHandle, IN UINTN NicNumber, OUT CHAR16 *NicName)
 
STATIC EFI_STATUS CreateServiceChildAndOpenProtocol (IN EFI_HANDLE ControllerHandle, IN EFI_GUID *ServiceBindingProtocolGuid, IN EFI_GUID *ProtocolGuid, OUT EFI_HANDLE *ChildHandle, OUT VOID **Interface)
 
STATIC VOID CloseProtocolAndDestroyServiceChild (IN EFI_HANDLE ControllerHandle, IN EFI_GUID *ServiceBindingProtocolGuid, IN EFI_GUID *ProtocolGuid, IN EFI_HANDLE ChildHandle)
 
STATIC EFI_STATUS DownloadFile (IN HTTP_DOWNLOAD_CONTEXT *Context, IN EFI_HANDLE ControllerHandle, IN CHAR16 *NicName)
 
STATIC EFI_STATUS TrimSpaces (IN CHAR16 *String)
 
STATIC VOID EFIAPI RequestCallback (IN EFI_EVENT Event, IN VOID *Context)
 
STATIC VOID EFIAPI ResponseCallback (IN EFI_EVENT Event, IN VOID *Context)
 
STATIC UINTN EfiGetEpochDays (IN EFI_TIME *Time)
 
STATIC UINTN EFIAPI EfiTimeToEpoch (IN EFI_TIME *Time)
 
SHELL_STATUS RunHttp (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 
STATIC EFI_STATUS WaitForCompletion (IN HTTP_DOWNLOAD_CONTEXT *Context, IN OUT BOOLEAN *CallBackComplete)
 
STATIC EFI_STATUS SendRequest (IN HTTP_DOWNLOAD_CONTEXT *Context, IN CHAR16 *DownloadUrl)
 
STATIC EFI_STATUS EFIAPI SavePortion (IN HTTP_DOWNLOAD_CONTEXT *Context, IN UINTN DownloadLen, IN CHAR8 *Buffer)
 
STATIC EFI_STATUS SetHostURI (IN CHAR8 *Location, IN HTTP_DOWNLOAD_CONTEXT *Context, IN CHAR16 *DownloadUrl)
 
STATIC EFI_STATUS EFIAPI ParseMsg (IN HTTP_BODY_PARSE_EVENT EventType, IN CHAR8 *Data, IN UINTN Length, IN VOID *Context)
 
STATIC EFI_STATUS GetResponse (IN HTTP_DOWNLOAD_CONTEXT *Context, IN CHAR16 *DownloadUrl)
 
EFI_HII_HANDLE InitializeHiiPackage (IN EFI_HANDLE ImageHandle)
 

Variables

STATIC CONST CHAR16 * ErrStatusDesc []
 
STATIC CONST SHELL_PARAM_ITEM ParamList []
 
STATIC SHELL_FILE_HANDLE mFileHandle = NULL
 
STATIC CONST CHAR16 * mLocalFilePath
 
STATIC BOOLEAN gRequestCallbackComplete = FALSE
 
STATIC BOOLEAN gResponseCallbackComplete = FALSE
 
STATIC BOOLEAN gHttpError
 
EFI_HII_HANDLE mHttpHiiHandle
 

Detailed Description

The implementation for the 'http' Shell command.

Copyright (c) 2015, ARM Ltd. All rights reserved.
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
(C) Copyright 2015 Hewlett Packard Enterprise Development LP
Copyright (c) 2020, Broadcom. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Http.c.

Macro Definition Documentation

◆ CLOSE_HTTP_HANDLE

#define CLOSE_HTTP_HANDLE (   ControllerHandle,
  HttpChildHandle 
)
Value:
do { \
if (HttpChildHandle) { \
CloseProtocolAndDestroyServiceChild ( \
ControllerHandle, \
&gEfiHttpServiceBindingProtocolGuid, \
&gEfiHttpProtocolGuid, \
HttpChildHandle \
); \
HttpChildHandle = NULL; \
} \
} while (0)
#define NULL
Definition: Base.h:319

Definition at line 50 of file Http.c.

◆ DEFAULT_BUF_SIZE

#define DEFAULT_BUF_SIZE   SIZE_32KB

Definition at line 40 of file Http.c.

◆ DEFAULT_HTML_FILE

#define DEFAULT_HTML_FILE   L"index.html"

Definition at line 77 of file Http.c.

◆ DEFAULT_HTTP_PROTO

#define DEFAULT_HTTP_PROTO   L"http"

Definition at line 78 of file Http.c.

◆ EPOCH_JULIAN_DATE

#define EPOCH_JULIAN_DATE   2440588

Definition at line 112 of file Http.c.

◆ HTTP_KB

#define HTTP_KB   L"\b\b\b\b\b\b\b\b\b\b"

Definition at line 88 of file Http.c.

◆ HTTP_PROGR_FRAME

#define HTTP_PROGR_FRAME   L"[ ]"

Definition at line 92 of file Http.c.

◆ HTTP_PROGRESS_DEL

#define HTTP_PROGRESS_DEL    L"\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b"

Definition at line 84 of file Http.c.

◆ HTTP_PROGRESS_MESSAGE_SIZE

#define HTTP_PROGRESS_MESSAGE_SIZE    ((sizeof (HTTP_PROGR_FRAME) / sizeof (CHAR16)) + 12)

Definition at line 34 of file Http.c.

◆ HTTP_PROGRESS_SLIDER_STEPS

#define HTTP_PROGRESS_SLIDER_STEPS    ((sizeof (HTTP_PROGR_FRAME) / sizeof (CHAR16)) - 3)

Definition at line 24 of file Http.c.

◆ IP4_CONFIG2_INTERFACE_INFO_NAME_LENGTH

#define IP4_CONFIG2_INTERFACE_INFO_NAME_LENGTH   32

Definition at line 14 of file Http.c.

◆ MAX_BUF_SIZE

#define MAX_BUF_SIZE   SIZE_4MB

Definition at line 41 of file Http.c.

◆ MAX_PARAM_COUNT

#define MAX_PARAM_COUNT   4

Definition at line 44 of file Http.c.

◆ MIN_PARAM_COUNT

#define MIN_PARAM_COUNT   2

Definition at line 43 of file Http.c.

◆ NEED_REDIRECTION

#define NEED_REDIRECTION (   Code)
Value:
(((Code >= HTTP_STATUS_300_MULTIPLE_CHOICES) \
&& (Code <= HTTP_STATUS_307_TEMPORARY_REDIRECT)) \
|| (Code == HTTP_STATUS_308_PERMANENT_REDIRECT))

Definition at line 45 of file Http.c.

◆ PRINT_HII

#define PRINT_HII (   token,
  ... 
)
Value:
-1, -1, NULL, token, mHttpHiiHandle, __VA_ARGS__)
EFI_STATUS EFIAPI ShellPrintHiiEx(IN INT32 Col OPTIONAL, IN INT32 Row OPTIONAL, IN CONST CHAR8 *Language OPTIONAL, IN CONST EFI_STRING_ID HiiFormatStringId, IN CONST EFI_HII_HANDLE HiiFormatHandle,...)

Definition at line 97 of file Http.c.

◆ PRINT_HII_APP

#define PRINT_HII_APP (   token,
  value 
)     PRINT_HII (token, HTTP_APP_NAME, value)

Definition at line 101 of file Http.c.

◆ SEC_PER_DAY

#define SEC_PER_DAY   ((UINTN) 86400)

Definition at line 119 of file Http.c.

◆ SEC_PER_HOUR

#define SEC_PER_HOUR   ((UINTN) 3600)

Definition at line 118 of file Http.c.

◆ SEC_PER_MIN

#define SEC_PER_MIN   ((UINTN) 60)

Definition at line 117 of file Http.c.

◆ TIMER_MAX_TIMEOUT_S

#define TIMER_MAX_TIMEOUT_S   10

Definition at line 72 of file Http.c.

◆ USER_AGENT_HDR

#define USER_AGENT_HDR   "Mozilla/5.0 (EDK2; Linux) Gecko/20100101 Firefox/79.0"

Definition at line 70 of file Http.c.

Enumeration Type Documentation

◆ HDR_TYPE

enum HDR_TYPE

Definition at line 63 of file Http.c.

Function Documentation

◆ CloseProtocolAndDestroyServiceChild()

STATIC VOID CloseProtocolAndDestroyServiceChild ( IN EFI_HANDLE  ControllerHandle,
IN EFI_GUID ServiceBindingProtocolGuid,
IN EFI_GUID ProtocolGuid,
IN EFI_HANDLE  ChildHandle 
)

Close the protocol identified by its GUID on the child handle of the service identified by its service binding protocol GUID, then destroy the child handle.

Parameters
[in]ControllerHandleController handle.
[in]ServiceBindingProtocolGuidService binding protocol GUID of the service to be destroyed.
[in]ProtocolGuidGUID of the protocol to be closed.
[in]ChildHandleHandle of the child to be destroyed.

Definition at line 953 of file Http.c.

◆ CreateServiceChildAndOpenProtocol()

STATIC EFI_STATUS CreateServiceChildAndOpenProtocol ( IN EFI_HANDLE  ControllerHandle,
IN EFI_GUID ServiceBindingProtocolGuid,
IN EFI_GUID ProtocolGuid,
OUT EFI_HANDLE ChildHandle,
OUT VOID **  Interface 
)

Create a child for the service identified by its service binding protocol GUID and get from the child the interface of the protocol identified by its GUID.

Parameters
[in]ControllerHandleController handle.
[in]ServiceBindingProtocolGuidService binding protocol GUID of the service to be created.
[in]ProtocolGuidGUID of the protocol to be open.
[out]ChildHandleAddress where the handler of the created child is returned. NULL is returned in case of error.
[out]InterfaceAddress where a pointer to the protocol interface is returned in case of success.
Return values
EFI_SUCCESSThe child was created and the protocol opened.
OthersEither the creation of the child or the opening of the protocol failed.

Create a child for the service identified by its service binding protocol GUID and get from the child the interface of the protocol identified by its GUID.

Parameters
[in]ControllerHandleController handle.
[in]ServiceBindingProtocolGuidService binding protocol GUID of the service to be created.
[in]ProtocolGuidGUID of the protocol to be open.
[out]ChildHandleAddress where the handler of the created child is returned. NULL is returned in case of error.
[out]InterfaceAddress where a pointer to the protocol interface is returned in case of success.
Returns
EFI_SUCCESS The child was created and the protocol opened.
Others Either the creation of the child or the opening of the protocol failed.

Definition at line 900 of file Http.c.

◆ DownloadFile()

STATIC EFI_STATUS DownloadFile ( IN HTTP_DOWNLOAD_CONTEXT Context,
IN EFI_HANDLE  ControllerHandle,
IN CHAR16 *  NicName 
)

Worker function that download the data of a file from an HTTP server given the path of the file and its size.

Parameters
[in]ContextA pointer to the download context.
Return values
EFI_SUCCESSThe file was downloaded.
EFI_OUT_OF_RESOURCESA memory allocation failed.
OthersThe downloading of the file from the server failed.

Worker function that downloads the data of a file from an HTTP server given the path of the file and its size.

Parameters
[in]ContextA pointer to the HTTP download context.
[in]ControllerHandleThe handle of the network interface controller
[in]NicNameNIC name
Return values
EFI_SUCCESSThe file was downloaded.
EFI_OUT_OF_RESOURCESA memory allocation failed. #return EFI_HTTP_ERROR The server returned a valid HTTP error. Examine the mLocalFilePath file to get error body.
OthersThe downloading of the file from the server failed.

Definition at line 1727 of file Http.c.

◆ EfiGetEpochDays()

STATIC UINTN EfiGetEpochDays ( IN EFI_TIME Time)

Calculate Epoch days.

Parameters
[in]Time- a pointer to the EFI_TIME abstraction.
Return values
Numberof days elapsed since EPOCH_JULIAN_DAY.

Definition at line 395 of file Http.c.

◆ EfiTimeToEpoch()

STATIC UINTN EFIAPI EfiTimeToEpoch ( IN EFI_TIME Time)

Converts EFI_TIME to Epoch seconds (elapsed since 1970 JANUARY 01, 00:00:00 UTC).

Parameters
[in]Timea pointer to EFI_TIME abstraction.

Definition at line 433 of file Http.c.

◆ GetNicName()

STATIC EFI_STATUS GetNicName ( IN EFI_HANDLE  ControllerHandle,
IN UINTN  NicNumber,
OUT CHAR16 *  NicName 
)

Get the name of the NIC.

Parameters
[in]ControllerHandleThe network physical device handle.
[in]NicNumberThe network physical device number.
[out]NicNameAddress where to store the NIC name. The memory area has to be at least IP4_CONFIG2_INTERFACE_INFO_NAME_LENGTH double byte wide.
Return values
EFI_SUCCESSThe name of the NIC was returned.
OthersThe creation of the child for the Managed Network Service failed or the opening of the Managed Network Protocol failed or the operational parameters for the Managed Network Protocol could not be read.

Get the name of the NIC.

Parameters
[in]ControllerHandleThe network physical device handle.
[in]NicNumberThe network physical device number.
[out]NicNameAddress where to store the NIC name. The memory area has to be at least IP4_CONFIG2_INTERFACE_INFO_NAME_LENGTH double byte wide.
Returns
EFI_SUCCESS The name of the NIC was returned.
Others The creation of the child for the Managed Network Service failed or the opening of the Managed Network Protocol failed or the operational parameters for the Managed Network Protocol could not be read.

Definition at line 829 of file Http.c.

◆ GetResponse()

STATIC EFI_STATUS GetResponse ( IN HTTP_DOWNLOAD_CONTEXT Context,
IN CHAR16 *  DownloadUrl 
)

Get HTTP server response and collect the whole body as a file. Set appropriate status in Context (REQ_OK, REQ_REPEAT, REQ_ERROR). Note that even if HTTP server returns an error code, it might send the body as well. This body will be collected in the resultant file.

Parameters
[in]ContextA pointer to the HTTP download context.
[in]DownloadUrlA pointer to the fully qualified URL to download.
Return values
EFI_SUCCESSValid file. Body successfully collected.
EFI_HTTP_ERRORResponse is a valid HTTP response, but the HTTP server indicated an error (HTTP code >= 400). Response body MAY contain full HTTP server response.
OthersError getting the reponse from the HTTP server. Response body is not collected.

Definition at line 1499 of file Http.c.

◆ InitializeHiiPackage()

EFI_HII_HANDLE InitializeHiiPackage ( IN EFI_HANDLE  ImageHandle)

Retrive HII package list from ImageHandle and publish to HII database.

Parameters
[in]ImageHandleThe image handle of the process.
Return values
HIIhandle.

Definition at line 1869 of file Http.c.

◆ ParseMsg()

STATIC EFI_STATUS EFIAPI ParseMsg ( IN HTTP_BODY_PARSE_EVENT  EventType,
IN CHAR8 *  Data,
IN UINTN  Length,
IN VOID *  Context 
)

Message parser callback. Save a portion of HTTP body.

Parameters
[in]EventTypeType of event. Can be either OnComplete or OnData.
[in]DataA pointer to the buffer with data.
[in]LengthData length of this portion.
[in]ContextA pointer to the HTTP download context.
Return values
EFI_SUCCESSThe portion was processed successfully.
OtherError returned by SavePortion.

Definition at line 1462 of file Http.c.

◆ RequestCallback()

STATIC VOID EFIAPI RequestCallback ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

Callback to set the request completion flag.

Parameters
[in]EventThe event.
[in]Contextpointer to Notification Context.

Definition at line 357 of file Http.c.

◆ ResponseCallback()

STATIC VOID EFIAPI ResponseCallback ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

Callback to set the response completion flag.

Parameters
[in]EventThe event.
[in]Contextpointer to Notification Context.

Definition at line 373 of file Http.c.

◆ RunHttp()

SHELL_STATUS RunHttp ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Function for 'http' command.

Parameters
[in]ImageHandleHandle to the Image (NULL if Internal).
[in]SystemTablePointer to the System Table (NULL if Internal).
Return values
SHELL_SUCCESSThe 'http' command completed successfully.
SHELL_ABORTEDThe Shell Library initialization failed.
SHELL_INVALID_PARAMETERAt least one of the command's arguments is not valid.
SHELL_OUT_OF_RESOURCESA memory allocation failed.
SHELL_NOT_FOUNDNetwork Interface Card not found.
SHELL_UNSUPPORTEDCommand was valid, but the server returned a status code indicating some error. Examine the file requested for error body.

Definition at line 469 of file Http.c.

◆ SavePortion()

STATIC EFI_STATUS EFIAPI SavePortion ( IN HTTP_DOWNLOAD_CONTEXT Context,
IN UINTN  DownloadLen,
IN CHAR8 *  Buffer 
)

Update the progress of a file download This procedure is called each time a new HTTP body portion is received.

Parameters
[in]ContextHTTP download context.
[in]DownloadLenPortion size, in bytes.
[in]BufferThe pointer to the parsed buffer.
Return values
EFI_SUCCESSPortion saved.
OtherError saving the portion.

Definition at line 1191 of file Http.c.

◆ SendRequest()

STATIC EFI_STATUS SendRequest ( IN HTTP_DOWNLOAD_CONTEXT Context,
IN CHAR16 *  DownloadUrl 
)

Generate and send a request to the http server.

Parameters
[in]ContextHTTP download context.
[in]DownloadUrlFully qualified URL to be downloaded.
Return values
EFI_SUCCESSRequest has been sent successfully.
EFI_INVALID_PARAMETERInvalid URL.
EFI_OUT_OF_RESOURCESOut of memory.
EFI_DEVICE_ERRORIf HTTPS is used, this probably means that TLS support either was not installed or not configured.
OthersError sending the request.

Definition at line 1078 of file Http.c.

◆ SetHostURI()

STATIC EFI_STATUS SetHostURI ( IN CHAR8 *  Location,
IN HTTP_DOWNLOAD_CONTEXT Context,
IN CHAR16 *  DownloadUrl 
)

Replace the original Host and Uri with Host and Uri returned by the HTTP server in 'Location' header (redirection).

Parameters
[in]LocationA pointer to the 'Location' string provided by HTTP server.
[in]ContextA pointer to HTTP download context.
[in]DownloadUrlFully qualified HTTP URL.
Return values
EFI_SUCCESSHost and Uri were successfully set.
EFI_OUT_OF_RESOURCESError setting Host or Uri.

Definition at line 1288 of file Http.c.

◆ StringToUint16()

STATIC BOOLEAN StringToUint16 ( IN CONST CHAR16 *  ValueStr,
OUT UINT16 *  Value 
)

Check and convert the UINT16 option values of the 'http' command.

Parameters
[in]ValueStrValue as an Unicode encoded string.
[out]ValueUINT16 value.
Return values
TRUEThe value was returned.
FALSEA parsing error occured.

Check and convert the UINT16 option values of the 'http' command

Parameters
[in]ValueStrValue as an Unicode encoded string
[out]ValueUINT16 value
Return values
TRUEThe value was returned.
FALSEA parsing error occured.

Check and convert the UINT16 option values of the 'tftp' command

Parameters
[in]ValueStrValue as an Unicode encoded string
[out]ValueUINT16 value
Returns
TRUE The value was returned.
FALSE A parsing error occurred.

Definition at line 792 of file Http.c.

◆ TrimSpaces()

STATIC EFI_STATUS TrimSpaces ( IN CHAR16 *  String)

Cleans off leading and trailing spaces and tabs.

Parameters
[in]Stringpointer to the string to trim them off.
Return values
EFI_SUCCESSNo errors.
EFI_INVALID_PARAMETERString pointer is NULL.

Definition at line 304 of file Http.c.

◆ WaitForCompletion()

STATIC EFI_STATUS WaitForCompletion ( IN HTTP_DOWNLOAD_CONTEXT Context,
IN OUT BOOLEAN *  CallBackComplete 
)

Wait until operation completes. Completion is indicated by setting of an appropriate variable.

Parameters
[in]ContextA pointer to the HTTP download context.
[in,out]CallBackCompleteA pointer to the callback completion variable set by the callback.
Return values
EFI_SUCCESSCallback signalled completion.
EFI_TIMEOUTTimed out waiting for completion.
OthersError waiting for completion.

Definition at line 989 of file Http.c.

Variable Documentation

◆ ErrStatusDesc

STATIC CONST CHAR16* ErrStatusDesc[]
Initial value:
=
{
L"400 Bad Request",
L"401 Unauthorized",
L"402 Payment required",
L"403 Forbidden",
L"404 Not Found",
L"405 Method not allowed",
L"406 Not acceptable",
L"407 Proxy authentication required",
L"408 Request time out",
L"409 Conflict",
L"410 Gone",
L"411 Length required",
L"412 Precondition failed",
L"413 Request entity too large",
L"414 Request URI to large",
L"415 Unsupported media type",
L"416 Requested range not satisfied",
L"417 Expectation failed",
L"500 Internal server error",
L"501 Not implemented",
L"502 Bad gateway",
L"503 Service unavailable",
L"504 Gateway timeout",
L"505 HTTP version not supported"
}

Definition at line 124 of file Http.c.

◆ gHttpError

STATIC BOOLEAN gHttpError

Definition at line 175 of file Http.c.

◆ gRequestCallbackComplete

STATIC BOOLEAN gRequestCallbackComplete = FALSE

Definition at line 172 of file Http.c.

◆ gResponseCallbackComplete

STATIC BOOLEAN gResponseCallbackComplete = FALSE

Definition at line 173 of file Http.c.

◆ mFileHandle

STATIC SHELL_FILE_HANDLE mFileHandle = NULL

Definition at line 165 of file Http.c.

◆ mHttpHiiHandle

EFI_HII_HANDLE mHttpHiiHandle

Definition at line 177 of file Http.c.

◆ mLocalFilePath

STATIC CONST CHAR16* mLocalFilePath

Definition at line 170 of file Http.c.

◆ ParamList

Initial value:
= {
{ L"-i", TypeValue },
{ L"-k", TypeFlag },
{ L"-l", TypeValue },
{ L"-m", TypeFlag },
{ L"-s", TypeValue },
{ L"-t", TypeValue },
{ NULL, TypeMax }
}
@ TypeValue
A flag that has some data following it with a space (IE "-a 1").
Definition: ShellLib.h:700
@ TypeFlag
A flag that is present or not present only (IE "-a").
Definition: ShellLib.h:699

Definition at line 152 of file Http.c.