8000 Reorganize repository as Arduino library · proddy/esp32_https_server@f69fffc · GitHub
[go: up one dir, main page]

Skip to content

Commit f69fffc

Browse files
committed
Reorganize repository as Arduino library
1 parent 7346398 commit f69fffc

40 files changed

+160
-134
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ Release/
4949
.scala_dependencies
5050
.worksheet
5151

52-
data/wifi/wifi.h
53-
data/cert/*.h
52+
examples/wifi/wifi.h
53+
examples/cert/*.h
File renamed without changes.
File renamed without changes.

tools/cert/create_cert.sh renamed to extras/create_cert.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ openssl rsa -in example.key -outform DER -out example.key.DER
5555
openssl x509 -in example.crt -outform DER -out example.crt.DER
5656

5757
# create header files
58-
mkdir ../../data/cert
59-
xxd -i example.crt.DER > ../../data/cert/cert.h
60-
xxd -i example.key.DER > ../../data/cert/private_key.h
58+
mkdir ../examples/cert
59+
xxd -i example.crt.DER > ../examples/cert/cert.h
60+
xxd -i example.key.DER > ../examples/cert/private_key.h

https_server.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
#include "data/favicon.h"
3333

3434
// Inlcudes for setting up the server
35-
#include "https/HTTPSServer.hpp"
35+
#include "src/HTTPSServer.hpp"
3636

3737
// Includes to define request handler callbacks
38-
#include "https/HTTPRequest.hpp"
39-
#include "https/HTTPResponse.hpp"
38+
#include "src/HTTPRequest.hpp"
39+
#include "src/HTTPResponse.hpp"
4040

4141
// The server loop will be configured as a separate task, so the server will run
4242
// independently from all other code.

keywords.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
ConnectionContext KEYWORD1
2+
HTTPConnection KEYWORD1
3+
HTTPHeader KEYWORD1
4+
HTTPHeaders KEYWORD1
5+
HTTPMiddlewareFunction KEYWORD1
6+
HTTPRequest KEYWORD1
7+
HTTPResponse KEYWORD1
8+
HTTPSCallbackFunction KEYWORD1
9+
HTTPSConnection KEYWORD1
10+
HTTPServer KEYWORD1
11+
HTTPSServer KEYWORD1
12+
ResolvedResource KEYWORD1
13+
ResourceNode KEYWORD1
14+
ResourceParameters KEYWORD1
15+
ResourceResolver KEYWORD1
16+
SSLCert KEYWORD1

library.properties

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name=ESP32 HTTP(S) Webserver
2+
version=0.1.0
3+
author=Frank Hessel <frank@fhessel.de>
4+
maintainer=Frank Hessel <frank@fhessel.de>
5+
sentence=SSL/TLS-enabled HTTPS server library for the ESP32.
6+
paragraph=The library allows to define handler functions for specific request URLs, provides some help with the HTTP protocol. It can handle unencrypted HTTP traffic as well.
7+
category=Communication
8+
url=https://github.com/fhessel/esp32_https_server
9+
architectures=esp32
10+
includes=HTTPSServer.hpp,HTTPRequest.hpp,HTTPResponse.hpp

https/ConnectionContext.cpp renamed to src/ConnectionContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Author: frank
66
*/
77

8-
#include "ConnectionContext.hpp"
8+
#include "../src/ConnectionContext.hpp"
99

1010
namespace httpsserver {
1111

https/ConnectionContext.hpp renamed to src/ConnectionContext.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* Author: frank
66
*/
77

8-
#ifndef HTTPS_CONNECTIONCONTEXT_HPP_
9-
#define HTTPS_CONNECTIONCONTEXT_HPP_
8+
#ifndef SRC_CONNECTIONCONTEXT_HPP_
9+
#define SRC_CONNECTIONCONTEXT_HPP_
1010

1111
#include <Arduino.h>
1212

@@ -35,4 +35,4 @@ class ConnectionContext {
3535

3636
} /* namespace httpsserver */
3737

38-
#endif /* HTTPS_CONNECTIONCONTEXT_HPP_ */
38+
#endif /* SRC_CONNECTIONCONTEXT_HPP_ */

https/HTTPConnection.cpp renamed to src/HTTPConnection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "HTTPConnection.hpp"
1+
#include "../src/HTTPConnection.hpp"
22

33
namespace httpsserver {
44

0 commit comments

Comments
 (0)
0