Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
意外と曖昧なwebの基礎
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
kigawa
December 15, 2024
Technology
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
意外と曖昧なwebの基礎
URLやHTMLなど何気なく使っているWEBの基礎でも分解して見ると意外と知らないことがあるかもしれません。
kigawa
December 15, 2024
More Decks by kigawa
See All by kigawa
自宅で立てるkubernetes
kigawa
0
82
Other Decks in Technology
See All in Technology
10年後、Engineering 行為を剥奪されるとして、わたしたちは、どう、何を創ればいいだろうか。 / If Engineering Is Taken Away in 10 Years, How and What Should We Create?
bitkey
PRO
1
200
Active Record Connection Adaptersにおける長年の課題に再び取り組む
yahonda
0
200
hackers_champloo_2026_tidb
makocchi
0
170
事業成長とデータ活用を止めないためのマネジメントへ挑戦
hiracky16
0
400
AI駆動で「他アプリの音を加工できる」アプリを作った
satomasahiro2005
0
170
DGX Spark でどこまでハッキングができるのか?
kash1064
3
1.4k
Optunaの最新リリースv5.0について
pfn
PRO
0
120
トークン化預金DCJPYの取り組みと活用ユースケース
finengine
0
160
スプシの手作業からの解脱 ~更新はClaude Codeに、見せ方と使い方はGASアプリに任せる~
kentarofujii
0
160
FinOps Agentが生んだ技術負債:コスト自動調査の落とし穴と解消までの道のり
oasis1994liveforever
2
140
Metadata - Section 1: HTML Basics
mohab1
0
120
Rustuna: Rustによる高速なOptuna実装
pfn
PRO
0
200
Featured
See All Featured
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
890
Done Done
chrislema
187
17k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Statistics for Hackers
jakevdp
799
230k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
570
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
Transcript
意外と曖昧なweb の基礎 by kigawa
AboutMe { name =“kigawa” favorite { language = Kotlin.jvm os
= Debian region = LibraryDevelopment game = Minecraft } sns { X =“@kigawa20” GitHub =“kigawa01” } }
URL
Uniform Resource Locatorの略。 インターネット上の固有のリソースのアドレス。 URLとは HTML、CSS、画像などのアドレス。
http://example.com:80/path/to/file.html ?key=value&k=v#heading | Authority | Scheme Domain Port Path Parameters
Anchor
http://example.com:80/path/to/file.html ?key=value&k=v#heading Scheme
Scheme http://example.com:80/path/to/file.html ?key=value&k=v#heading Scheme プロトコル。データを転送するための方法。 http,https,mailto,ftpなど。
http://example.com:80/path/to/file.html ?key=value&k=v#heading | Authority | Domain Port
Authority //の後に続く。ドメインとポートからなる。 localhost:3000など。 http://example.com:80/path/to/file.html ?key=value&k=v#heading | Authority | Domain Port
Domain Webサーバーの場所を示す。IPアドレスの場合もある。 localhost,127.0.0.1,example.comなど。 http://example.com:80/path/to/file.html ?key=value&k=v#heading | Authority | Domain
ループバックアドレスという。 自身を表すアドレスのこと。 localhost/127.0.0.1とは? 例えば、http://localhostにアクセスすると、アクセスしたコンピューターと同 じコンピューターに接続される。
Port 出入口の番号。プロトコルの標準ポートは省略できる。 3000,80,443など。 http://example.com:80/path/to/file.html ?key=value&k=v#heading | Authority | Port
http://example.com:80/path/to/file.html ?key=value&k=v#heading Path
Path リソースへのパス。サーバー上のファイルの場所。 /index.html,/hello/index.phpなど http://example.com:80/path/to/file.html ?key=value&k=v#heading Path
http://example.com:80/path/to/file.html ?key=value&k=v#heading Parameters
引数(Parameters) キーと値を紐づけた追加の引数。Queryと言う場合もある。 Key=value,q=hello,sort=dateなど http://example.com:80/path/to/file.html ?key=value&k=v#heading Parameters
http://example.com:80/path/to/file.html ?key=value&k=v#heading Anchor
Ancher 見出しを指定できる。サーバーに送られることはない。 #index,#linkなど http://example.com:80/path/to/file.html ?key=value&k=v#heading Anchor
HTTP
リソースを読み取るためのプロトコル。 Webにおけるデータ交換に使われる。 HTTPとは HTML、CSS、画像などを送受信する。
リクエストのデータ client server • メソッド • URL • バージョン •
ヘッダー • Body
レスポンスのデータ client server • バージョン • ステータスコード • ステータスメッセージ •
ヘッダー • Body
client server • メソッド リクエスト
HTTPリクエスト・レスポンスの動作を指定する。 GET,POST,PUT,DELETE,PATCHを使うことが多い。 メソッド ほかにはCONNECT,HEAD,OPTIONS,TRACEなどがある。
リソースを取得する。 データを送信はしてはいけない。 GETメソッド
サーバーにリソースを送信する。 リソースを追加するなど。 POSTメソッド
client server • ヘッダー リクエスト • ヘッダー レスポンス
追加の情報を送信するための物。 Content-Type,Authorizationなどを使うこと が多い。 ヘッダー ほかにはAccept,Access-Control-Allow-Originなどがある。
client server • ステータスコード レスポンス
HTTPリクエストが正常に終了したかを表す。 200,201,404,401,418,503など多くある。 ステータスコード 1xx(情報),2xx(成功),3xx(リダイレクト),4xx(クライアントエラー), 5xx(サーバーエラー)に分けられる。
client server • Body リクエスト • Body レスポンス
POSTやPUTリクエストの際に送信するデータ。 Form Data,Json,xmlなどの形式が使える。 Request Body データの形式はContent-Typeヘッダーで指定することができる。
GET、POST問わずHTMLなどクライアントに送信 するデータ。 Json,xmlなどの形式も使える。 Reponse Body データの形式はContent-Typeヘッダーで指定することができる。
まとめ 普段使っているURLやHTTPも、何気なく使ってる技術でも分解して 見ることができる