http_init_file() is only used within LwIP.
 
Symbols
loading...
Files
loading...

http_init_file() function

Initialize a http connection with a file to send (if found). Called by http_find_file and http_find_error_file.

Syntax

static err_t http_init_file(struct http_state *hs,     struct fs_file *file,     int is_09,     const char *uri,     u8_t tag_check,     char *params);
Implemented in httpd.c:2304

Arguments

uri

the HTTP header URI

tag_check

enable SSI tag checking

params

!= NULL if URI has parameters (separated by '?')

hs

http connection state

file

file structure to send (or NULL if not found)

is_09

1 if the request is HTTP/0.9 (no HTTP headers in response)

Return value

ERR_OK if file was found and hs has been initialized correctly another err_t otherwise

References

LocationReferrerText
httpd.c:2305
http_init_file(struct http_state *hs, struct fs_file *file, int is_09, const char *uri,
httpd.c:311
static err_t http_init_file(struct http_state *hs, struct fs_file *file, int is_09, const char *uri, u8_t tag_check, char *params);
httpd.c:2289http_find_file()
return http_init_file(hs, file, is_09, uri, tag_check, params);

Call Tree

Functions calling http_init_file()
Functions called by http_init_file()
all items filtered out
http_init_file()
printf()
all items filtered out
Type of http_init_file()
http_init_file()
all items filtered out