Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
e28ee097
Commit
e28ee097
authored
9 years ago
by
Sergey Lyubka
Committed by
Marko Mikulicic
9 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move mongoose binary to dev repo
PUBLISHED_FROM=224a216abc4a7cca50d80f762dca602f54470105
parent
2b4e5448
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
128 additions
and
82 deletions
+128
-82
mongoose.c
mongoose.c
+104
-81
mongoose.h
mongoose.h
+24
-1
No files found.
mongoose.c
View file @
e28ee097
This diff is collapsed.
Click to expand it.
mongoose.h
View file @
e28ee097
...
@@ -404,6 +404,22 @@ void MD5_Init(MD5_CTX *c);
...
@@ -404,6 +404,22 @@ void MD5_Init(MD5_CTX *c);
void
MD5_Update
(
MD5_CTX
*
c
,
const
unsigned
char
*
data
,
size_t
len
);
void
MD5_Update
(
MD5_CTX
*
c
,
const
unsigned
char
*
data
,
size_t
len
);
void
MD5_Final
(
unsigned
char
*
md
,
MD5_CTX
*
c
);
void
MD5_Final
(
unsigned
char
*
md
,
MD5_CTX
*
c
);
/*
* Return stringified MD5 hash for NULL terminated list of strings.
* Example:
*
* char buf[33];
* cs_md5(buf, "foo", "bar", NULL);
*/
char
*
cs_md5
(
char
buf
[
33
],
...);
/*
* Stringify binary data. Output buffer size must be 2 * size_of_input + 1
* because each byte of input takes 2 bytes in string representation
* plus 1 byte for the terminating \0 character.
*/
void
cs_to_hex
(
char
*
to
,
const
unsigned
char
*
p
,
size_t
len
);
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
/* __cplusplus */
#endif
/* __cplusplus */
...
@@ -1259,10 +1275,11 @@ extern "C" {
...
@@ -1259,10 +1275,11 @@ extern "C" {
struct
http_message
{
struct
http_message
{
struct
mg_str
message
;
/* Whole message: request line + headers + body */
struct
mg_str
message
;
/* Whole message: request line + headers + body */
struct
mg_str
proto
;
/* "HTTP/1.1" -- for both request and response */
/* HTTP Request line (or HTTP response line) */
/* HTTP Request line (or HTTP response line) */
struct
mg_str
method
;
/* "GET" */
struct
mg_str
method
;
/* "GET" */
struct
mg_str
uri
;
/* "/my_file.html" */
struct
mg_str
uri
;
/* "/my_file.html" */
struct
mg_str
proto
;
/* "HTTP/1.1" -- for both request and response */
/* For responses, code and response status message are set */
/* For responses, code and response status message are set */
int
resp_code
;
int
resp_code
;
struct
mg_str
resp_status_msg
;
struct
mg_str
resp_status_msg
;
...
@@ -1561,6 +1578,9 @@ struct mg_serve_http_opts {
...
@@ -1561,6 +1578,9 @@ struct mg_serve_http_opts {
/* List of index files. Default is "" */
/* List of index files. Default is "" */
const
char
*
index_files
;
const
char
*
index_files
;
/* Path to a HTTP requests log file. Leave as NULL to disable access log. */
const
char
*
access_log_file
;
/*
/*
* Leave as NULL to disable authentication.
* Leave as NULL to disable authentication.
* To enable directory protection with authentication, set this to ".htpasswd"
* To enable directory protection with authentication, set this to ".htpasswd"
...
@@ -1614,6 +1634,9 @@ struct mg_serve_http_opts {
...
@@ -1614,6 +1634,9 @@ struct mg_serve_http_opts {
/* DAV document root. If NULL, DAV requests are going to fail. */
/* DAV document root. If NULL, DAV requests are going to fail. */
const
char
*
dav_document_root
;
const
char
*
dav_document_root
;
/* DAV passwords file. If NULL, DAV requests are going to fail. */
const
char
*
dav_auth_file
;
/* Glob pattern for the files to hide. */
/* Glob pattern for the files to hide. */
const
char
*
hidden_file_pattern
;
const
char
*
hidden_file_pattern
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment