Search Preview
sanicのソースコードリーディングメモ
38elements.github.io38elements
.io > 38elements.github.io
SEO audit: Content analysis
Language | Error! No language localisation is found. | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Title | sanicのソースコードリーディングメモ | ||||||||||||||||||||||||||||||||||||
Text / HTML ratio | 29 % | ||||||||||||||||||||||||||||||||||||
Frame | Excellent! The website does not use iFrame solutions. | ||||||||||||||||||||||||||||||||||||
Flash | Excellent! The website does not have any flash contents. | ||||||||||||||||||||||||||||||||||||
Keywords cloud | = route Github transport body methods=methods handler=handler HttpProtocolはasyncioProtocolのサブクラス sanicのソースコードリーディングメモ selftransportwriteでresponseの内容を書き込んでいる responseはhandlerの戻り値 response write_responseself リクエストデータを受け取ってhttptoolsHttpRequestParserを実行 data data_receivedself connection_madeしてからのタイムアウトの処理 ここで設定されている url connection_timeoutself | ||||||||||||||||||||||||||||||||||||
Keywords consistency |
|
||||||||||||||||||||||||||||||||||||
Headings |
|
||||||||||||||||||||||||||||||||||||
Images | We found 0 images on this web page. |
SEO Keywords (Single)
Keyword | Occurrence | Density |
---|---|---|
= | 6 | 0.30 % |
route | 3 | 0.15 % |
Github | 2 | 0.10 % |
transport | 2 | 0.10 % |
body | 2 | 0.10 % |
methods=methods | 2 | 0.10 % |
handler=handler | 2 | 0.10 % |
HttpProtocolはasyncioProtocolのサブクラス | 2 | 0.10 % |
sanicのソースコードリーディングメモ | 1 | 0.05 % |
selftransportwriteでresponseの内容を書き込んでいる | 1 | 0.05 % |
responseはhandlerの戻り値 | 1 | 0.05 % |
response | 1 | 0.05 % |
write_responseself | 1 | 0.05 % |
リクエストデータを受け取ってhttptoolsHttpRequestParserを実行 | 1 | 0.05 % |
data | 1 | 0.05 % |
data_receivedself | 1 | 0.05 % |
connection_madeしてからのタイムアウトの処理 | 1 | 0.05 % |
ここで設定されている | 1 | 0.05 % |
url | 1 | 0.05 % |
connection_timeoutself | 1 | 0.05 % |
SEO Keywords (Two Word)
Keyword | Occurrence | Density |
---|---|---|
= route | 2 | 0.10 % |
sanicのソースコードリーディングメモ sanicはasyncioベースの速さに注力しているウェブサーバーです。 | 1 | 0.05 % |
connection_timeoutself connection_madeしてからのタイムアウトの処理 | 1 | 0.05 % |
url urlをセット | 1 | 0.05 % |
on_urlself url | 1 | 0.05 % |
selftransportwriteでresponseの内容を書き込んでいる on_urlself | 1 | 0.05 % |
responseはhandlerの戻り値 selftransportwriteでresponseの内容を書き込んでいる | 1 | 0.05 % |
response responseはhandlerの戻り値 | 1 | 0.05 % |
write_responseself response | 1 | 0.05 % |
リクエストデータを受け取ってhttptoolsHttpRequestParserを実行 write_responseself | 1 | 0.05 % |
data リクエストデータを受け取ってhttptoolsHttpRequestParserを実行 | 1 | 0.05 % |
data_receivedself data | 1 | 0.05 % |
ここで設定されている data_receivedself | 1 | 0.05 % |
connection_madeしてからのタイムアウトの処理 ここで設定されている | 1 | 0.05 % |
exc connection_timeoutself | 1 | 0.05 % |
on_headerself name | 1 | 0.05 % |
connection_lostself exc | 1 | 0.05 % |
transport connection_lostself | 1 | 0.05 % |
= transport | 1 | 0.05 % |
selftransport = | 1 | 0.05 % |
SEO Keywords (Three Word)
Keyword | Occurrence | Density | Possible Spam |
---|---|---|---|
sanicのソースコードリーディングメモ sanicはasyncioベースの速さに注力しているウェブサーバーです。 Python35以上で動作します。 | 1 | 0.05 % | No |
exc connection_timeoutself connection_madeしてからのタイムアウトの処理 | 1 | 0.05 % | No |
url urlをセット on_headerself | 1 | 0.05 % | No |
on_urlself url urlをセット | 1 | 0.05 % | No |
selftransportwriteでresponseの内容を書き込んでいる on_urlself url | 1 | 0.05 % | No |
responseはhandlerの戻り値 selftransportwriteでresponseの内容を書き込んでいる on_urlself | 1 | 0.05 % | No |
response responseはhandlerの戻り値 selftransportwriteでresponseの内容を書き込んでいる | 1 | 0.05 % | No |
write_responseself response responseはhandlerの戻り値 | 1 | 0.05 % | No |
リクエストデータを受け取ってhttptoolsHttpRequestParserを実行 write_responseself response | 1 | 0.05 % | No |
data リクエストデータを受け取ってhttptoolsHttpRequestParserを実行 write_responseself | 1 | 0.05 % | No |
data_receivedself data リクエストデータを受け取ってhttptoolsHttpRequestParserを実行 | 1 | 0.05 % | No |
ここで設定されている data_receivedself data | 1 | 0.05 % | No |
connection_madeしてからのタイムアウトの処理 ここで設定されている data_receivedself | 1 | 0.05 % | No |
connection_timeoutself connection_madeしてからのタイムアウトの処理 ここで設定されている | 1 | 0.05 % | No |
connection_lostself exc connection_timeoutself | 1 | 0.05 % | No |
on_headerself name value | 1 | 0.05 % | No |
transport connection_lostself exc | 1 | 0.05 % | No |
= transport connection_lostself | 1 | 0.05 % | No |
selftransport = transport | 1 | 0.05 % | No |
Transport selftransport = | 1 | 0.05 % | No |
SEO Keywords (Four Word)
Keyword | Occurrence | Density | Possible Spam |
---|---|---|---|
sanicのソースコードリーディングメモ sanicはasyncioベースの速さに注力しているウェブサーバーです。 Python35以上で動作します。 Github | 1 | 0.05 % | No |
exc connection_timeoutself connection_madeしてからのタイムアウトの処理 ここで設定されている | 1 | 0.05 % | No |
url urlをセット on_headerself name | 1 | 0.05 % | No |
on_urlself url urlをセット on_headerself | 1 | 0.05 % | No |
selftransportwriteでresponseの内容を書き込んでいる on_urlself url urlをセット | 1 | 0.05 % | No |
responseはhandlerの戻り値 selftransportwriteでresponseの内容を書き込んでいる on_urlself url | 1 | 0.05 % | No |
response responseはhandlerの戻り値 selftransportwriteでresponseの内容を書き込んでいる on_urlself | 1 | 0.05 % | No |
write_responseself response responseはhandlerの戻り値 selftransportwriteでresponseの内容を書き込んでいる | 1 | 0.05 % | No |
リクエストデータを受け取ってhttptoolsHttpRequestParserを実行 write_responseself response responseはhandlerの戻り値 | 1 | 0.05 % | No |
data リクエストデータを受け取ってhttptoolsHttpRequestParserを実行 write_responseself response | 1 | 0.05 % | No |
data_receivedself data リクエストデータを受け取ってhttptoolsHttpRequestParserを実行 write_responseself | 1 | 0.05 % | No |
ここで設定されている data_receivedself data リクエストデータを受け取ってhttptoolsHttpRequestParserを実行 | 1 | 0.05 % | No |
connection_madeしてからのタイムアウトの処理 ここで設定されている data_receivedself data | 1 | 0.05 % | No |
connection_timeoutself connection_madeしてからのタイムアウトの処理 ここで設定されている data_receivedself | 1 | 0.05 % | No |
connection_lostself exc connection_timeoutself connection_madeしてからのタイムアウトの処理 | 1 | 0.05 % | No |
on_headerself name value selfheadersにnameとvalueを追加 | 1 | 0.05 % | No |
transport connection_lostself exc connection_timeoutself | 1 | 0.05 % | No |
= transport connection_lostself exc | 1 | 0.05 % | No |
selftransport = transport connection_lostself | 1 | 0.05 % | No |
Transport selftransport = transport | 1 | 0.05 % | No |
Internal links in - 38elements.github.io
redux-actionsメモ
Vue CLI 3メモ
DOMメモ
Laravelメモ
vue-webpack-boilerplateメモ
Webpackメモ
PostCSSメモ
Babelメモ
Luxonメモ
vuelidateメモ
Djangoのデータベースメモ
errcheckでtestファイルとvendorとdeferを除外する方法
Goでリクエストの内容を表示する
GoのGzipメモ
httptestメモ
Goメモ
Chaiメモ
Joiメモ
React Routerメモ
React Reduxメモ
Reactメモ
Scalaメモ
Create React Appメモ
Vimメモ
Karmaメモ
Jasmineメモ
axiosメモ
Vue Materialメモ
VueRouterメモ
Vuexメモ
Vue.jsメモ
asyncioのloopメモ
asyncioメモ
sanicのソースコードリーディングメモ
Reflectメモ
Chart.jsメモ
Python Tips
Flatpickrメモ
flexboxメモ
Handlebars.jsメモ
Marionette.jsのEventメモ
Marionette.jsのViewメモ
Marionette.jsのRegionメモ
Marionette.jsのApplicationメモ
PHP_CodeSnifferメモ
ESLintメモ
Mochaメモ
nightmare.jsメモ
Marionette.jsメモ
Backbone.jsメモ
NodeJSメモ
日付メモ
deferred.jsメモ
lxmlメモ
AWSメモ
VirtualBoxメモ
38elements.github.io Spined HTML
sanicのソースコードリーディングメモ sanicのソースコードリーディングメモ sanicはasyncioベースの速さに注力しているウェブサーバーです。 Python3.5以上で動作します。 Github appでありSanicクラス * @app.route(uri, methods=None) * これをしているだけ app.router.add(uri=uri, methods=methods, handler=handler) handlerはcoroutineである必要がある router.add()ではuriのparameterを取得する正規表現の生成が行われる * uriによってrouteを格納する変数を振り分ける * route = Route( handler=handler, methods=methods, pattern=pattern, parameters=parameters) self.routes_all[uri] = route if properties['unhashable']: self.routes_always_check.append(route) # add_parameter(match)でuriにパラメータがある場合 elif parameters: self.routes_dynamic[url_hash(uri)].append(route) else: self.routes_static[uri] = route Routeはnamedtuple * app.run() * サーバーイベントリスナーの登録 * ワーカーの起動(serve()) * serve() * async_loopはuvloopもしくはasyncio * loopの生成 * create_server()でしてcoroutineを生成 * protocol_factoryはHttpProtocolクラスを返す関数 HttpProtocolはasyncio.Protocolのサブクラス 1秒間ごとにcurrent_timeを更新する * server_coroutineの実行 * request_handler * request_handlerはapp.handle_request(self, request, response_callback) handle_requestはミドルウェアとハンドラを実行したあとresponse_callbackを実行する response_callbackはwrite_response on_message_complete()で実行される * HttpProtocol * HttpProtocolはasyncio.Protocolのサブクラス on_url, on_header, on_headers_complete, on_body, on_message_completeはhttptoolsインスタンスから呼ばれる self.parser = httptools.HttpRequestParser(self) * connection_timeout, connection_made, data_receivedはasyncio.Protocolのメソッド connection_made(self, transport) * Transport self.transport = transport * connection_lost(self, exc) * connection_timeout(self) * connection_madeしてからのタイムアウトの処理 ここで設定されている data_received(self, data) * リクエストデータを受け取ってhttptools.HttpRequestParserを実行 write_response(self, response) * responseはhandlerの戻り値 * self.transport.write()でresponseの内容を書き込んでいる * on_url(self, url) * urlをセット on_header(self, name, value) * self.headersにnameとvalueを追加 on_headers_complete(self) * self.requestにRequestインスタンスを代入 on_body(self, body) * self.request.body = soul on_message_complete(self) * request_handlerを実行する httptools * app.parserはhttptools.HttpRequestParser(self) * HTTPResponse * json(), text(), html()はHTTPResponse()のwrapper Request * Requestはdictのサブクラス Router * ≪asyncioメモ Main Shell Github Star Ranking at 2016/11/21≫