File tree Expand file tree Collapse file tree 12 files changed +192
-14
lines changed
Expand file tree Collapse file tree 12 files changed +192
-14
lines changed Original file line number Diff line number Diff line change 1+ /* *
2+ httpserver
3+ Client.cpp
4+ Copyright 2011-2012 Ramsey Kant
5+
6+ Licensed under the Apache License, Version 2.0 (the "License");
7+ you may not use this file except in compliance with the License.
8+ You may obtain a copy of the License at
9+
10+ http://www.apache.org/licenses/LICENSE-2.0
11+
12+ Unless required by applicable law or agreed to in writing, software
13+ distributed under the License is distributed on an "AS IS" BASIS,
14+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+ See the License for the specific language governing permissions and
16+ limitations under the License.
17+ */
18+
119#include " Client.h"
220#include " HTTPServer.h"
321
Original file line number Diff line number Diff line change 1+ /* *
2+ httpserver
3+ Client.h
4+ Copyright 2011-2012 Ramsey Kant
5+
6+ Licensed under the Apache License, Version 2.0 (the "License");
7+ you may not use this file except in compliance with the License.
8+ You may obtain a copy of the License at
9+
10+ http://www.apache.org/licenses/LICENSE-2.0
11+
12+ Unless required by applicable law or agreed to in writing, software
13+ distributed under the License is distributed on an "AS IS" BASIS,
14+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+ See the License for the specific language governing permissions and
16+ limitations under the License.
17+ */
18+
119#ifndef CLIENT_H_
220#define CLIENT_H_
321
Original file line number Diff line number Diff line change 1+ /* *
2+ httpserver
3+ HTTPMessage.cpp
4+ Copyright 2011-2012 Ramsey Kant
5+
6+ Licensed under the Apache License, Version 2.0 (the "License");
7+ you may not use this file except in compliance with the License.
8+ You may obtain a copy of the License at
9+
10+ http://www.apache.org/licenses/LICENSE-2.0
11+
12+ Unless required by applicable law or agreed to in writing, software
13+ distributed under the License is distributed on an "AS IS" BASIS,
14+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+ See the License for the specific language governing permissions and
16+ limitations under the License.
17+ */
18+
119#include " HTTPMessage.h"
220
321HTTPMessage::HTTPMessage () : ByteBuffer(4096 ) {
Original file line number Diff line number Diff line change 1+ /* *
2+ httpserver
3+ HTTPServer.cpp
4+ Copyright 2011-2012 Ramsey Kant
5+
6+ Licensed under the Apache License, Version 2.0 (the "License");
7+ you may not use this file except in compliance with the License.
8+ You may obtain a copy of the License at
9+
10+ http://www.apache.org/licenses/LICENSE-2.0
11+
12+ Unless required by applicable law or agreed to in writing, software
13+ distributed under the License is distributed on an "AS IS" BASIS,
14+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+ See the License for the specific language governing permissions and
16+ limitations under the License.
17+ */
18+
119#include " HTTPServer.h"
220
321/* *
Original file line number Diff line number Diff line change 1+ /* *
2+ httpserver
3+ HTTPServer.h
4+ Copyright 2011-2012 Ramsey Kant
5+
6+ Licensed under the Apache License, Version 2.0 (the "License");
7+ you may not use this file except in compliance with the License.
8+ You may obtain a copy of the License at
9+
10+ http://www.apache.org/licenses/LICENSE-2.0
11+
12+ Unless required by applicable law or agreed to in writing, software
13+ distributed under the License is distributed on an "AS IS" BASIS,
14+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+ See the License for the specific language governing permissions and
16+ limitations under the License.
17+ */
18+
119#ifndef _HTTPSERVER_H
220#define _HTTPSERVER_H
321
Original file line number Diff line number Diff line change 1- Copyright 2011 Ramsey Kant
1+ httpserver
2+ Copyright 2011-2012 Ramsey Kant
23
34 Licensed under the Apache License, Version 2.0 (the "License");
45 you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 11Yet Another HTTP Server
2- =======================
3- Ramsey Kant
2+ Ramsey Kant
3+
4+ https://github.com/RamseyK
45
5- General Notes
6- -----------------
7-
8- Tested Platforms
9- -----------------
10- * GNU/Linux
11- * OSX
12- * Cygwin
13- * Win32
6+ A simple HTTP server for *nix that uses my HTTP parsing classes from ByteBuffer. I will eventually move from select() to epoll() in order to demonstrate better socket management techniques.
7+
8+ Dependencies:
9+ Boost Threads
10+
11+ License:
12+ See LICENSE.TXT
Original file line number Diff line number Diff line change 1+ /* *
2+ httpserver
3+ Resource.cpp
4+ Copyright 2011-2012 Ramsey Kant
5+
6+ Licensed under the Apache License, Version 2.0 (the "License");
7+ you may not use this file except in compliance with the License.
8+ You may obtain a copy of the License at
9+
10+ http://www.apache.org/licenses/LICENSE-2.0
11+
12+ Unless required by applicable law or agreed to in writing, software
13+ distributed under the License is distributed on an "AS IS" BASIS,
14+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+ See the License for the specific language governing permissions and
16+ limitations under the License.
17+ */
18+
119#include " Resource.h"
220
321Resource::Resource (std::string loc) {
Original file line number Diff line number Diff line change 1+ /* *
2+ httpserver
3+ Resource.h
4+ Copyright 2011-2012 Ramsey Kant
5+
6+ Licensed under the Apache License, Version 2.0 (the "License");
7+ you may not use this file except in compliance with the License.
8+ You may obtain a copy of the License at
9+
10+ http://www.apache.org/licenses/LICENSE-2.0
11+
12+ Unless required by applicable law or agreed to in writing, software
13+ distributed under the License is distributed on an "AS IS" BASIS,
14+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+ See the License for the specific language governing permissions and
16+ limitations under the License.
17+ */
18+
119#ifndef _RESOURCE_H
220#define _RESOURCE_H
321
Original file line number Diff line number Diff line change 1+ /* *
2+ httpserver
3+ ResourceManager.cpp
4+ Copyright 2011-2012 Ramsey Kant
5+
6+ Licensed under the Apache License, Version 2.0 (the "License");
7+ you may not use this file except in compliance with the License.
8+ You may obtain a copy of the License at
9+
10+ http://www.apache.org/licenses/LICENSE-2.0
11+
12+ Unless required by applicable law or agreed to in writing, software
13+ distributed under the License is distributed on an "AS IS" BASIS,
14+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+ See the License for the specific language governing permissions and
16+ limitations under the License.
17+ */
18+
119#include " ResourceManager.h"
220
321ResourceManager::ResourceManager (std::string base) {
You can’t perform that action at this time.
0 commit comments