From 8bef4c845ac883ad9eab0c3e790f6d0642e96b76 Mon Sep 17 00:00:00 2001 From: King Wang Date: Tue, 29 Jun 2021 23:58:50 +0800 Subject: [PATCH] custom http file service --- examples/custom-http-res/res/test.png | Bin 0 -> 28532 bytes examples/custom-http-res/src/index.ts | 22 +++++++++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 examples/custom-http-res/res/test.png diff --git a/examples/custom-http-res/res/test.png b/examples/custom-http-res/res/test.png new file mode 100644 index 0000000000000000000000000000000000000000..73d8eb0c759c660e5c58335d3d696ce6de1bb3cb GIT binary patch literal 28532 zcmdSB^;cDI)IECW?ruquP`W`Hq)SS=ySuwX8tD${F6mV1M!KX+q@=zNpYMJDfOm|0 zf4Gh_9Gt`1dq1((TyxI7HjzpSQfSD;$Pfqw?Sr(q3IqZ*1b#k6ga`i@9+rYPuOJ`9 zMbtd9jypYlR9(BCpZPu{(aC2ve^_wQ&pTG)l2CIK5!Vuz7K&FHh173a#aR@@B{_nH5n1(c%h_KMTa8xm{ zFJEgF4oP_V3M@ec3pV&g;08373OdZ0$xJd&v$31Wyy1U(3sm z=Nk!uPcL&3zD=t2@H z_hj%cbep8!R+6~`s-D~VJo36L*>$bO@5Z5*B%rCi)Ytm zDWkOaUk1GmOCF@(s>-{~RiW{SyEyR5X$WkxFyw9#UN4bw7BiNP@|nSBR8dvy?D9XK zRMugvLH#H25`!$WAyb=@t{cVtDb9G}x+smYu`J=WN1?HX0;lZl_09`=`!2SW8CYP5 zE3K$RhPW4h<4;uy{vq{j@-S-3vTLfM@VRPRkks_sp!<^0^N+ov{eTo%o$12<^tD#)_U z@X5^h`Q%agGGfdT7 z>5j!y5z}7mGKcc5YX{l<{w7hRp<1kjU#f-u>Pg$)C`0Au1}i;~Q`1t3e;E8M^>q8J z!s?W067f+w$nQ+aN652?P+5hwfJ)-CY=_YHVr6>XI=7O8K>W4_ze7kZopgJlk)DMj_%N zyli2S_;1bJ#bKjEOsV4I$k=z}Kb0$e^D}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Yf}#Eg1qZ{b+|nTD#wa6!TYCPHH0OPU6%A;gY?9z&)2Q1udjNg7CQTz z8pqMFbEJg7|5l3(p`)g5PCQ|asj+{Adlc*I>-l=haD*^avp^&QuuAX$RLXR83_Cp2 zGu^dG&k(hZQBty+t9Wt=6E45bb=g4F1@<;>^5ewYhLx9}K&KM5>EuR@`;}M_bs%mpbiHFB4X6+H^77zRDb@s#{aA~eAxVzbC{rjaF3~?=ZK2sFtYw9 zGiAUag#i#&T`h@donqo$)KSOHbys4TQg4|9r?;FWlET2mr0OHeTl!vMYIIcj;bM=u zZLywm82y2J5U|R>Z6TEy3a`UX)%s3x@iCN>D2SK#U#e)40}O`KbUH)yE~6`iVE7EB zw+H3XVZhpz^YwUmdBb>x0OyE*gQpRg{n^?CZA3v(#!w@!2tw$Y^Tp_atC;v+K*0DA zeCJ!YZUMXoq5{aT4sA=KKmfNC>10A&0u|%$hha3}xcF>_9s_`tPp zb+_ywrGu02=8Ze|jnNNTh>CVqK1RZh$tx~~bN)O}J4+PyNI6N`%Q+tR9-&jD7}2^f zeiOH{v{cI18-duM$9<2VSmwp?3s?wb9L>P>RI>c;!hvmWZ4EQ1F-G(RiGDPa+?g-H z*L{6`6HlozCP_@(W@VYjzc#}1xJaj{%3HxqLAmFO`Iya`T|U8h>L@| zW_)>_%`fEXw|No>Kf>QPK#_8kZ1_X*m6X3z#ZZNgzIyvMyKjFqW~IOIYM^JpStH}r zb_(83D`qs@ZXt$z5~-yn>kN~1s;nnPrO}18mv`^poyYP*kTt`YhE+_@eg>%esC94w zCx2C5b6K(#dhEjz*txNX^xyZnk&74%pCg_LvL}_{e=Cm=Y76OqEwcQ-zh&qT+00K{ W%U!{;#`rcpvU94MDo;+E2K^7?gk? { +server.flows.preRecvBufferFlow.push(async v => { let conn = v.conn as HttpConnection; if (conn.httpReq.method === 'GET') { - // 特定 URL: /test - if (conn.httpReq.url === '/test') { - conn.httpRes.end('test test') - return undefined; + // Static File Service + if (conn.httpReq.url) { + // Check whether the file is existed + let resFilePath = path.join('res', conn.httpReq.url) + let isExisted = await fs.access(resFilePath).then(() => true).catch(() => false); + if (isExisted) { + // Response the file + let content = await fs.readFile(resFilePath); + conn.httpRes.end(content); + return undefined; + } } - // 默认 GET 响应 + // default GET response conn.httpRes.end('Hello World'); return undefined; }