TianoCore EDK2 master
Loading...
Searching...
No Matches
DxeHttpLib.h File Reference

Go to the source code of this file.

Data Structures

struct  HTTP_URL_FILED_DATA
 
struct  HTTP_URL_PARSER
 

Macros

#define BIT(x)   (1 << x)
 
#define HTTP_VERSION_CRLF_STR   " HTTP/1.1\r\n"
 
#define EMPTY_SPACE   " "
 
#define NET_IS_HEX_CHAR(Ch)
 
#define HTTP_URI_FIELD_SCHEME   0
 
#define HTTP_URI_FIELD_AUTHORITY   1
 
#define HTTP_URI_FIELD_PATH   2
 
#define HTTP_URI_FIELD_QUERY   3
 
#define HTTP_URI_FIELD_FRAGMENT   4
 
#define HTTP_URI_FIELD_USERINFO   5
 
#define HTTP_URI_FIELD_HOST   6
 
#define HTTP_URI_FIELD_PORT   7
 
#define HTTP_URI_FIELD_MAX   8
 
#define HTTP_URI_PORT_MAX_NUM   65535
 

Enumerations

enum  HTTP_URL_PARSE_STATE {
  UrlParserUrlStart , UrlParserScheme , UrlParserSchemeColon , UrlParserSchemeColonSlash ,
  UrlParserSchemeColonSlashSlash , UrlParserAuthority , UrlParserAtInAuthority , UrlParserPath ,
  UrlParserQueryStart , UrlParserQuery , UrlParserFragmentStart , UrlParserFragment ,
  UrlParserUserInfo , UrlParserHostStart , UrlParserHost , UrlParserHostIpv6 ,
  UrlParserPortStart , UrlParserPort , UrlParserStateMax
}
 

Detailed Description

Header file for HttpLib.

Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP

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

Definition in file DxeHttpLib.h.

Macro Definition Documentation

◆ BIT

#define BIT (   x)    (1 << x)

Definition at line 24 of file DxeHttpLib.h.

◆ EMPTY_SPACE

#define EMPTY_SPACE   " "

Definition at line 27 of file DxeHttpLib.h.

◆ HTTP_URI_FIELD_AUTHORITY

#define HTTP_URI_FIELD_AUTHORITY   1

Definition at line 38 of file DxeHttpLib.h.

◆ HTTP_URI_FIELD_FRAGMENT

#define HTTP_URI_FIELD_FRAGMENT   4

Definition at line 41 of file DxeHttpLib.h.

◆ HTTP_URI_FIELD_HOST

#define HTTP_URI_FIELD_HOST   6

Definition at line 43 of file DxeHttpLib.h.

◆ HTTP_URI_FIELD_MAX

#define HTTP_URI_FIELD_MAX   8

Definition at line 45 of file DxeHttpLib.h.

◆ HTTP_URI_FIELD_PATH

#define HTTP_URI_FIELD_PATH   2

Definition at line 39 of file DxeHttpLib.h.

◆ HTTP_URI_FIELD_PORT

#define HTTP_URI_FIELD_PORT   7

Definition at line 44 of file DxeHttpLib.h.

◆ HTTP_URI_FIELD_QUERY

#define HTTP_URI_FIELD_QUERY   3

Definition at line 40 of file DxeHttpLib.h.

◆ HTTP_URI_FIELD_SCHEME

#define HTTP_URI_FIELD_SCHEME   0

Definition at line 37 of file DxeHttpLib.h.

◆ HTTP_URI_FIELD_USERINFO

#define HTTP_URI_FIELD_USERINFO   5

Definition at line 42 of file DxeHttpLib.h.

◆ HTTP_URI_PORT_MAX_NUM

#define HTTP_URI_PORT_MAX_NUM   65535

Definition at line 47 of file DxeHttpLib.h.

◆ HTTP_VERSION_CRLF_STR

#define HTTP_VERSION_CRLF_STR   " HTTP/1.1\r\n"

Definition at line 26 of file DxeHttpLib.h.

◆ NET_IS_HEX_CHAR

#define NET_IS_HEX_CHAR (   Ch)
Value:
((('0' <= (Ch)) && ((Ch) <= '9')) || \
(('A' <= (Ch)) && ((Ch) <= 'F')) || \
(('a' <= (Ch)) && ((Ch) <= 'f')))

Definition at line 29 of file DxeHttpLib.h.

Enumeration Type Documentation

◆ HTTP_URL_PARSE_STATE

enum HTTP_URL_PARSE_STATE

Definition at line 62 of file DxeHttpLib.h.