<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
http://sample.vodobox.net/skate_phantom_flex_4k/skate_phantom_flex_4k.m3u8 | |
http://playertest.longtailvideo.com/adaptive/wowzaid3/playlist.m3u8 | |
http://cdn-fms.rbs.com.br/vod/hls_sample1_manifest.m3u8 | |
http://nasatv-lh.akamaihd.net/i/NASA_101@319270/index_1000_av-p.m3u8?sd=10&rebase=on | |
http://content.jwplatform.com/manifests/vM7nH0Kl.m3u8 |
There are a lot of ways to serve a Go HTTP application. The best choices depend on each use case. Currently nginx looks to be the standard web server for every new project even though there are other great web servers as well. However, how much is the overhead of serving a Go application behind an nginx server? Do we need some nginx features (vhosts, load balancing, cache, etc) or can you serve directly from Go? If you need nginx, what is the fastest connection mechanism? This are the kind of questions I'm intended to answer here. The purpose of this benchmark is not to tell that Go is faster or slower than nginx. That would be stupid.
So, these are the different settings we are going to compare:
error_page 500 /500.html; | |
location /500.html{ | |
return 500 '{"error": {"status_code": 500,"status": "Internal Server Error"}}'; | |
} | |
error_page 502 /502.html; | |
location /502.html{ | |
return 502 '{"error": {"status_code": 502,"status": "Bad Gateway"}}'; | |
} |
import React from 'react' | |
import Markdown from './Markdown' | |
const components = { | |
h1: props => <h1 style={{ color: 'tomato' }} {...props} /> | |
} | |
const scope = { | |
name: 'world!', | |
Box: props => <div style={{border: 'thin solid tomato'}} {...props} /> |
fizz = function f() { | |
fizz = function () { | |
fizz = function () { | |
fizz = f | |
return "Fizz" | |
} | |
} | |
} | |
buzz = function f() { |
Android Studio30分集中超絶技巧100選 DroidKaigi 2018 | |
山本 ユウスケ @yusuke | |
マウス、トラックパッドを使うのはやめましょう | |
今日は以下のキーマップの話です | |
Mac OSX: Mac OSX 10.5+ | |
Windows/Linux: Default | |
他のキーマップだとQiitaやドキュメント、ブログなどを見る際に苦労します。 | |
設定画面 Cmd + , (Ctrl + Alt + S) | |
プロジェクト設定画面 Cmd + ; | |
File > Power Save Modeでバッテリー節約 |
完成形
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event)) | |
}) | |
/** | |
* Entry point of the worker | |
*/ | |
async function handleRequest(event) { | |
try { | |
// Get the JWT |
#!/bin/sh | |
# | |
# Create Google Chrome launcher (for Mac) | |
# | |
CHROME_APP="/Applications/Google Chrome.app" | |
CHROME_PROFILE_DIR="$HOME/Library/Application Support/Google/Chrome" | |
echo "Enter profile name: \c" |