6e1491fd41
All checks were successful
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m8s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m8s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m17s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m21s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 1m26s
linux-mips64-gcc / linux-gcc-mips64el (push) Successful in 1m43s
linux-x64-gcc / linux-gcc (push) Successful in 1m52s
90 lines
24 KiB
HTML
90 lines
24 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" dir="ltr"
|
|
xmlns:dc="http://purl.org/dc/terms/">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="generator" content="diff2html.py (http://git.droids-corp.org/gitweb/?p=diff2html)" />
|
|
<!--meta name="author" content="Fill in" /-->
|
|
<title>HTML Diff http/server/request_handler.hpp</title>
|
|
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEXAAAAAgAD///+K/HwIAAAAJUlEQVQI12NYBQQM2IgGBQ4mCIEQW7oyK4phampkGIQAc1G1AQCRxCNbyW92oQAAAABJRU5ErkJggg==" type="image/png" />
|
|
<meta property="dc:language" content="en" />
|
|
<!--meta property="dc:date" content="" /-->
|
|
<meta property="dc:modified" content="2023-04-26T20:13:16.285520+01:00" />
|
|
<meta name="description" content="File comparison" />
|
|
<meta property="dc:abstract" content="File comparison" />
|
|
<style>
|
|
table { border:0px; border-collapse:collapse; width: 100%; font-size:0.75em; font-family: Lucida Console, monospace }
|
|
td.line { color:#8080a0 }
|
|
th { background: black; color: white }
|
|
tr.diffunmodified td { background: #D0D0E0 }
|
|
tr.diffhunk td { background: #A0A0A0 }
|
|
tr.diffadded td { background: #CCFFCC }
|
|
tr.diffdeleted td { background: #FFCCCC }
|
|
tr.diffchanged td { background: #FFFFA0 }
|
|
span.diffchanged2 { background: #E0C880 }
|
|
span.diffponct { color: #B08080 }
|
|
tr.diffmisc td {}
|
|
tr.diffseparator td {}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<table class="diff">
|
|
<tr><th colspan='2'>src/​examples/​cpp03/​http/​server/​request_handler.​hpp</th><th colspan='2'>src/​examples/​cpp11/​http/​server/​request_handler.​hpp</th></tr>
|
|
<tr class="diffhunk"><td colspan="2">⋮</td><td colspan="2">⋮</td></tr><tr class="diffunmodified"><td class="diffline">1 </td><td class="diffpresent">/​/​</td><td class="diffline">1 </td><td class="diffpresent">/​/​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">2 </td><td class="diffpresent">/​/​<span class="diffponct">·</span>​request_handler.​hpp</td><td class="diffline">2 </td><td class="diffpresent">/​/​<span class="diffponct">·</span>​request_handler.​hpp</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">3 </td><td class="diffpresent">/​/​<span class="diffponct">·</span>​~~~~~~~~~~~~~~~~~~~</td><td class="diffline">3 </td><td class="diffpresent">/​/​<span class="diffponct">·</span>​~~~~~~~~~~~~~~~~~~~</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">4 </td><td class="diffpresent">/​/​</td><td class="diffline">4 </td><td class="diffpresent">/​/​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">5 </td><td class="diffpresent">/​/​<span class="diffponct">·</span>​Copyright<span class="diffponct">·</span>​(c)​<span class="diffponct">·</span>​2003-​2023<span class="diffponct">·</span>​Christopher<span class="diffponct">·</span>​M.​<span class="diffponct">·</span>​Kohlhoff<span class="diffponct">·</span>​(chris<span class="diffponct">·</span>​at<span class="diffponct">·</span>​kohlhoff<span class="diffponct">·</span>​dot<span class="diffponct">·</span>​com)​</td><td class="diffline">5 </td><td class="diffpresent">/​/​<span class="diffponct">·</span>​Copyright<span class="diffponct">·</span>​(c)​<span class="diffponct">·</span>​2003-​2023<span class="diffponct">·</span>​Christopher<span class="diffponct">·</span>​M.​<span class="diffponct">·</span>​Kohlhoff<span class="diffponct">·</span>​(chris<span class="diffponct">·</span>​at<span class="diffponct">·</span>​kohlhoff<span class="diffponct">·</span>​dot<span class="diffponct">·</span>​com)​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">6 </td><td class="diffpresent">/​/​</td><td class="diffline">6 </td><td class="diffpresent">/​/​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">7 </td><td class="diffpresent">/​/​<span class="diffponct">·</span>​Distributed<span class="diffponct">·</span>​under<span class="diffponct">·</span>​the<span class="diffponct">·</span>​Boost<span class="diffponct">·</span>​Software<span class="diffponct">·</span>​License,​<span class="diffponct">·</span>​Version<span class="diffponct">·</span>​1.​0.​<span class="diffponct">·</span>​(See<span class="diffponct">·</span>​accompanying</td><td class="diffline">7 </td><td class="diffpresent">/​/​<span class="diffponct">·</span>​Distributed<span class="diffponct">·</span>​under<span class="diffponct">·</span>​the<span class="diffponct">·</span>​Boost<span class="diffponct">·</span>​Software<span class="diffponct">·</span>​License,​<span class="diffponct">·</span>​Version<span class="diffponct">·</span>​1.​0.​<span class="diffponct">·</span>​(See<span class="diffponct">·</span>​accompanying</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">8 </td><td class="diffpresent">/​/​<span class="diffponct">·</span>​file<span class="diffponct">·</span>​LICENSE_1_0.​txt<span class="diffponct">·</span>​or<span class="diffponct">·</span>​copy<span class="diffponct">·</span>​at<span class="diffponct">·</span>​http:​/​/​www.​boost.​org/​LICENSE_1_0.​txt)​</td><td class="diffline">8 </td><td class="diffpresent">/​/​<span class="diffponct">·</span>​file<span class="diffponct">·</span>​LICENSE_1_0.​txt<span class="diffponct">·</span>​or<span class="diffponct">·</span>​copy<span class="diffponct">·</span>​at<span class="diffponct">·</span>​http:​/​/​www.​boost.​org/​LICENSE_1_0.​txt)​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">9 </td><td class="diffpresent">/​/​</td><td class="diffline">9 </td><td class="diffpresent">/​/​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">10 </td><td class="diffpresent"></td><td class="diffline">10 </td><td class="diffpresent"></td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">11 </td><td class="diffpresent">#ifndef<span class="diffponct">·</span>​HTTP_REQUEST_HANDLER_​HPP</td><td class="diffline">11 </td><td class="diffpresent">#ifndef<span class="diffponct">·</span>​HTTP_REQUEST_HANDLER_​HPP</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">12 </td><td class="diffpresent">#define<span class="diffponct">·</span>​HTTP_REQUEST_HANDLER_​HPP</td><td class="diffline">12 </td><td class="diffpresent">#define<span class="diffponct">·</span>​HTTP_REQUEST_HANDLER_​HPP</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">13 </td><td class="diffpresent"></td><td class="diffline">13 </td><td class="diffpresent"></td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">14 </td><td class="diffpresent">#include<span class="diffponct">·</span>​<string></td><td class="diffline">14 </td><td class="diffpresent">#include<span class="diffponct">·</span>​<string></td></tr>
|
|
<tr class="diffdeleted"><td class="diffline">15 </td><td class="diffpresent">#include<span class="diffponct">·</span>​<boost/​noncopyable.​hpp></td><td colspan="2"></td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">16 </td><td class="diffpresent"></td><td class="diffline">15 </td><td class="diffpresent"></td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">17 </td><td class="diffpresent">namespace<span class="diffponct">·</span>​http<span class="diffponct">·</span>​{</td><td class="diffline">16 </td><td class="diffpresent">namespace<span class="diffponct">·</span>​http<span class="diffponct">·</span>​{</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">18 </td><td class="diffpresent">namespace<span class="diffponct">·</span>​server<span class="diffponct">·</span>​{</td><td class="diffline">17 </td><td class="diffpresent">namespace<span class="diffponct">·</span>​server<span class="diffponct">·</span>​{</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">19 </td><td class="diffpresent"></td><td class="diffline">18 </td><td class="diffpresent"></td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">20 </td><td class="diffpresent">struct<span class="diffponct">·</span>​reply;​</td><td class="diffline">19 </td><td class="diffpresent">struct<span class="diffponct">·</span>​reply;​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">21 </td><td class="diffpresent">struct<span class="diffponct">·</span>​request;​</td><td class="diffline">20 </td><td class="diffpresent">struct<span class="diffponct">·</span>​request;​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">22 </td><td class="diffpresent"></td><td class="diffline">21 </td><td class="diffpresent"></td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">23 </td><td class="diffpresent">/​/​/​<span class="diffponct">·</span>​The<span class="diffponct">·</span>​common<span class="diffponct">·</span>​handler<span class="diffponct">·</span>​for<span class="diffponct">·</span>​all<span class="diffponct">·</span>​incoming<span class="diffponct">·</span>​requests.​</td><td class="diffline">22 </td><td class="diffpresent">/​/​/​<span class="diffponct">·</span>​The<span class="diffponct">·</span>​common<span class="diffponct">·</span>​handler<span class="diffponct">·</span>​for<span class="diffponct">·</span>​all<span class="diffponct">·</span>​incoming<span class="diffponct">·</span>​requests.​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">24 </td><td class="diffpresent">class<span class="diffponct">·</span>​request_handler</td><td class="diffline">23 </td><td class="diffpresent">class<span class="diffponct">·</span>​request_handler</td></tr>
|
|
<tr class="diffdeleted"><td class="diffline">25 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​:​<span class="diffponct">·</span>​private<span class="diffponct">·</span>​boost:​:​noncopyable</td><td colspan="2"></td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">26 </td><td class="diffpresent">{</td><td class="diffline">24 </td><td class="diffpresent">{</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">27 </td><td class="diffpresent">public:​</td><td class="diffline">25 </td><td class="diffpresent">public:​</td></tr>
|
|
<tr class="diffadded"><td colspan="2"> </td><td class="diffline">26 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​request_handler(const​<span class="diffponct">·</span>​request_handler&)​<span class="diffponct">·</span>​=<span class="diffponct">·</span>​delete;​</td></tr>
|
|
<tr class="diffadded"><td colspan="2"> </td><td class="diffline">27 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​request_handler&<span class="diffponct">·</span>​operator=(const<span class="diffponct">·</span>​request_handler&)​<span class="diffponct">·</span>​=<span class="diffponct">·</span>​delete;​</td></tr>
|
|
<tr class="diffadded"><td colspan="2"> </td><td class="diffline">28 </td><td class="diffpresent"></td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">28 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​/​/​/​<span class="diffponct">·</span>​Construct<span class="diffponct">·</span>​with<span class="diffponct">·</span>​a<span class="diffponct">·</span>​directory<span class="diffponct">·</span>​containing<span class="diffponct">·</span>​files<span class="diffponct">·</span>​to<span class="diffponct">·</span>​be<span class="diffponct">·</span>​served.​</td><td class="diffline">29 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​/​/​/​<span class="diffponct">·</span>​Construct<span class="diffponct">·</span>​with<span class="diffponct">·</span>​a<span class="diffponct">·</span>​directory<span class="diffponct">·</span>​containing<span class="diffponct">·</span>​files<span class="diffponct">·</span>​to<span class="diffponct">·</span>​be<span class="diffponct">·</span>​served.​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">29 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​explicit<span class="diffponct">·</span>​request_handler(const​<span class="diffponct">·</span>​std:​:​string&<span class="diffponct">·</span>​doc_root)​;​</td><td class="diffline">30 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​explicit<span class="diffponct">·</span>​request_handler(const​<span class="diffponct">·</span>​std:​:​string&<span class="diffponct">·</span>​doc_root)​;​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">30 </td><td class="diffpresent"></td><td class="diffline">31 </td><td class="diffpresent"></td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">31 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​/​/​/​<span class="diffponct">·</span>​Handle<span class="diffponct">·</span>​a<span class="diffponct">·</span>​request<span class="diffponct">·</span>​and<span class="diffponct">·</span>​produce<span class="diffponct">·</span>​a<span class="diffponct">·</span>​reply.​</td><td class="diffline">32 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​/​/​/​<span class="diffponct">·</span>​Handle<span class="diffponct">·</span>​a<span class="diffponct">·</span>​request<span class="diffponct">·</span>​and<span class="diffponct">·</span>​produce<span class="diffponct">·</span>​a<span class="diffponct">·</span>​reply.​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">32 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​void<span class="diffponct">·</span>​handle_request(const<span class="diffponct">·</span>​request&<span class="diffponct">·</span>​req,​<span class="diffponct">·</span>​reply&<span class="diffponct">·</span>​rep)​;​</td><td class="diffline">33 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​void<span class="diffponct">·</span>​handle_request(const<span class="diffponct">·</span>​request&<span class="diffponct">·</span>​req,​<span class="diffponct">·</span>​reply&<span class="diffponct">·</span>​rep)​;​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">33 </td><td class="diffpresent"></td><td class="diffline">34 </td><td class="diffpresent"></td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">34 </td><td class="diffpresent">private:​</td><td class="diffline">35 </td><td class="diffpresent">private:​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">35 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​/​/​/​<span class="diffponct">·</span>​The<span class="diffponct">·</span>​directory<span class="diffponct">·</span>​containing<span class="diffponct">·</span>​the<span class="diffponct">·</span>​files<span class="diffponct">·</span>​to<span class="diffponct">·</span>​be<span class="diffponct">·</span>​served.​</td><td class="diffline">36 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​/​/​/​<span class="diffponct">·</span>​The<span class="diffponct">·</span>​directory<span class="diffponct">·</span>​containing<span class="diffponct">·</span>​the<span class="diffponct">·</span>​files<span class="diffponct">·</span>​to<span class="diffponct">·</span>​be<span class="diffponct">·</span>​served.​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">36 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​std:​:​string<span class="diffponct">·</span>​doc_root_;​</td><td class="diffline">37 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​std:​:​string<span class="diffponct">·</span>​doc_root_;​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">37 </td><td class="diffpresent"></td><td class="diffline">38 </td><td class="diffpresent"></td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">38 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​/​/​/​<span class="diffponct">·</span>​Perform<span class="diffponct">·</span>​URL-​decoding<span class="diffponct">·</span>​on<span class="diffponct">·</span>​a<span class="diffponct">·</span>​string.​<span class="diffponct">·</span>​Returns<span class="diffponct">·</span>​false<span class="diffponct">·</span>​if<span class="diffponct">·</span>​the<span class="diffponct">·</span>​encoding<span class="diffponct">·</span>​was</td><td class="diffline">39 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​/​/​/​<span class="diffponct">·</span>​Perform<span class="diffponct">·</span>​URL-​decoding<span class="diffponct">·</span>​on<span class="diffponct">·</span>​a<span class="diffponct">·</span>​string.​<span class="diffponct">·</span>​Returns<span class="diffponct">·</span>​false<span class="diffponct">·</span>​if<span class="diffponct">·</span>​the<span class="diffponct">·</span>​encoding<span class="diffponct">·</span>​was</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">39 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​/​/​/​<span class="diffponct">·</span>​invalid.​</td><td class="diffline">40 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​/​/​/​<span class="diffponct">·</span>​invalid.​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">40 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​static<span class="diffponct">·</span>​bool<span class="diffponct">·</span>​url_decode(const<span class="diffponct">·</span>​std:​:​string&<span class="diffponct">·</span>​in,​<span class="diffponct">·</span>​std:​:​string&<span class="diffponct">·</span>​out)​;​</td><td class="diffline">41 </td><td class="diffpresent"><span class="diffponct">·</span>​<span class="diffponct">·</span>​static<span class="diffponct">·</span>​bool<span class="diffponct">·</span>​url_decode(const<span class="diffponct">·</span>​std:​:​string&<span class="diffponct">·</span>​in,​<span class="diffponct">·</span>​std:​:​string&<span class="diffponct">·</span>​out)​;​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">41 </td><td class="diffpresent">};​</td><td class="diffline">42 </td><td class="diffpresent">};​</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">42 </td><td class="diffpresent"></td><td class="diffline">43 </td><td class="diffpresent"></td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">43 </td><td class="diffpresent">}<span class="diffponct">·</span>​/​/​<span class="diffponct">·</span>​namespace<span class="diffponct">·</span>​server</td><td class="diffline">44 </td><td class="diffpresent">}<span class="diffponct">·</span>​/​/​<span class="diffponct">·</span>​namespace<span class="diffponct">·</span>​server</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">44 </td><td class="diffpresent">}<span class="diffponct">·</span>​/​/​<span class="diffponct">·</span>​namespace<span class="diffponct">·</span>​http</td><td class="diffline">45 </td><td class="diffpresent">}<span class="diffponct">·</span>​/​/​<span class="diffponct">·</span>​namespace<span class="diffponct">·</span>​http</td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">45 </td><td class="diffpresent"></td><td class="diffline">46 </td><td class="diffpresent"></td></tr>
|
|
<tr class="diffunmodified"><td class="diffline">46 </td><td class="diffpresent">#endif<span class="diffponct">·</span>​/​/​<span class="diffponct">·</span>​HTTP_REQUEST_HANDLER_​HPP</td><td class="diffline">47 </td><td class="diffpresent">#endif<span class="diffponct">·</span>​/​/​<span class="diffponct">·</span>​HTTP_REQUEST_HANDLER_​HPP</td></tr>
|
|
|
|
</table>
|
|
|
|
<footer>
|
|
<p>Modified at 26.04.2023. HTML formatting created by <a href="http://git.droids-corp.org/gitweb/?p=diff2html;a=summary">diff2html</a>. </p>
|
|
</footer>
|
|
</body></html>
|