Microchip® Advanced Software Framework

lwip/raw_http_basic_example_ajax/network/httpserver/httpd.h File Reference

Httpd server.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

Data Structures

struct  HttpCGI
 

Macros

#define CGI_LED_CMD_KEY   "set"
 
#define CGI_LED_ID_KEY   "n"
 
#define CGI_MATCH_EXT   2
 Select item in table if the extention match. More...
 
#define CGI_MATCH_NAME   3
 Select item in table if the string is content. More...
 
#define CGI_MATCH_NONE   0
 
#define CGI_MATCH_WORD   1
 Select item in table only if string match. More...
 
#define CONFIG_AFSK_TX_BUFLEN   1024
 FIFO tx buffer. More...
 
#define HTTP_DEFAULT_PAGE   "index.html"
 

Typedefs

typedef int(* http_handler_t )(const char *name, char *revc_buf, size_t revc_len)
 
typedef struct HttpCGI HttpCGI
 

Enumerations

enum  {
  HTTP_CONTENT_JSON = 0,
  HTTP_CONTENT_HTML,
  HTTP_CONTENT_CSS,
  HTTP_CONTENT_JS,
  HTTP_CONTENT_PNG,
  HTTP_CONTENT_JPEG,
  HTTP_CONTENT_GIF,
  HTTP_CONTENT_PLAIN,
  HTTP_CONTENT_CNT
}
 HTTP content type enum. More...
 

Functions

void httpd_init (void)
 HTTP server init. More...
 

#define CGI_LED_CMD_KEY   "set"

Referenced by cgi_SetLed().

#define CGI_LED_ID_KEY   "n"

Referenced by cgi_SetLed().

#define CGI_MATCH_EXT   2

Select item in table if the extention match.

Referenced by cgi_search().

#define CGI_MATCH_NAME   3

Select item in table if the string is content.

Referenced by cgi_search().

#define CGI_MATCH_NONE   0
#define CGI_MATCH_WORD   1

Select item in table only if string match.

#define CONFIG_AFSK_TX_BUFLEN   1024

FIFO tx buffer.

#define HTTP_DEFAULT_PAGE   "index.html"

Referenced by http_recv().

typedef int(* http_handler_t)(const char *name, char *revc_buf, size_t revc_len)
typedef struct HttpCGI HttpCGI

anonymous enum

HTTP content type enum.

Enumerator
HTTP_CONTENT_JSON 
HTTP_CONTENT_HTML 
HTTP_CONTENT_CSS 
HTTP_CONTENT_JS 
HTTP_CONTENT_PNG 
HTTP_CONTENT_JPEG 
HTTP_CONTENT_GIF 
HTTP_CONTENT_PLAIN 
HTTP_CONTENT_CNT