http_common.h File Reference

Definitions common to HTTP client and server. More...

#include "core/net.h"

Go to the source code of this file.

Macros

#define HTTP_PORT   80
 
#define HTTPS_PORT   443
 

Enumerations

enum  HttpVersion { HTTP_VERSION_0_9 = 0x0009, HTTP_VERSION_1_0 = 0x0100, HTTP_VERSION_1_1 = 0x0101 }
 HTTP version numbers. More...
 
enum  HttpMethod {
  HTTP_METHOD_GET = 0, HTTP_METHOD_HEAD = 1, HTTP_METHOD_POST = 2, HTTP_METHOD_PUT = 3,
  HTTP_METHOD_DELETE = 4, HTTP_METHOD_TRACE = 5, HTTP_METHOD_CONNECT = 6, HTTP_METHOD_PATCH = 7
}
 HTTP methods. More...
 
enum  HttpAuthMode { HTTP_AUTH_MODE_NONE = 0, HTTP_AUTH_MODE_BASIC = 1, HTTP_AUTH_MODE_DIGEST = 2 }
 HTTP authentication schemes. More...
 

Detailed Description

Definitions common to HTTP client and server.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2019 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneTCP Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
1.9.2

Definition in file http_common.h.

Macro Definition Documentation

◆ HTTP_PORT

#define HTTP_PORT   80

Definition at line 38 of file http_common.h.

◆ HTTPS_PORT

#define HTTPS_PORT   443

Definition at line 40 of file http_common.h.

Enumeration Type Documentation

◆ HttpAuthMode

HTTP authentication schemes.

Enumerator
HTTP_AUTH_MODE_NONE 
HTTP_AUTH_MODE_BASIC 
HTTP_AUTH_MODE_DIGEST 

Definition at line 81 of file http_common.h.

◆ HttpMethod

enum HttpMethod

HTTP methods.

Enumerator
HTTP_METHOD_GET 
HTTP_METHOD_HEAD 
HTTP_METHOD_POST 
HTTP_METHOD_PUT 
HTTP_METHOD_DELETE 
HTTP_METHOD_TRACE 
HTTP_METHOD_CONNECT 
HTTP_METHOD_PATCH 

Definition at line 64 of file http_common.h.

◆ HttpVersion

HTTP version numbers.

Enumerator
HTTP_VERSION_0_9 
HTTP_VERSION_1_0 
HTTP_VERSION_1_1 

Definition at line 52 of file http_common.h.