Networking презентация

Слайд 2

connection

connection

Слайд 3

connection

connection

Слайд 4

connection HTTP

connection

HTTP

Слайд 5

ip

ip

Слайд 6

ip

ip

Слайд 7

domain names https://google.com

domain names

https://google.com

Слайд 8

domain names https://google.com

domain names

https://google.com

Слайд 9

domain names google.com -> ?.?.?.?

domain names

google.com -> ?.?.?.?

Слайд 10

dns DNS Server Client google.com

dns

DNS Server

Client

google.com

Слайд 11

dns DNS Server Client 173.194.122.152

dns

DNS Server

Client

173.194.122.152

Слайд 12

connecting to server 173.194.122.152:80

connecting to server

173.194.122.152:80

Слайд 13

connecting to server 173.194.122.152:443

connecting to server

173.194.122.152:443

Слайд 14

connecting to server https://173.194.122.152:443

connecting to server

https://173.194.122.152:443

Слайд 15

get request

get request

Слайд 16

get request

get request

Слайд 17

A Misconception

A Misconception

Слайд 18

it’s all html

it’s all html

Слайд 19

it’s all html

it’s all html

Слайд 20

it’s all html

it’s all html

Слайд 21

it’s all html

it’s all html

Слайд 22

server decides how to handle response GET /path/to/somewhere response.end(‘Hello world!’)

server decides how to handle response

GET /path/to/somewhere

response.end(‘Hello world!’)

Слайд 23

server decides how to handle response GET /path/to/somewhere.php php script.php HTML

server decides how to handle response

GET /path/to/somewhere.php

php script.php

HTML

Слайд 24

Подходы к разработке

Подходы к разработке

Слайд 25

Server-Side Rendering

Server-Side Rendering

Слайд 26

Client-Side Rendering

Client-Side Rendering

Слайд 27

client-side rendering app.js index.html main.css Клиент

client-side rendering

app.js

index.html

main.css

Клиент

Слайд 28

client-side rendering index.html

client-side rendering

index.html






src=‘app.js’>


Слайд 29

Isomorphic Rendering

Isomorphic Rendering

Слайд 30

XMLHttpRequest

XMLHttpRequest

Слайд 31

xhr xhr.js const xhr = new XMLHttpRequest() xhr.open(‘GET’, ‘url’) xhr.onreadystatechange

xhr

xhr.js

const xhr = new XMLHttpRequest()
xhr.open(‘GET’, ‘url’)
xhr.onreadystatechange = () => {
if

(xhr.readyState === XMLHttpRequest.DONE &&
xhr.status === 200)
console.log(xhr.responseText)
}
Слайд 32

JSON

JSON

Слайд 33

json file.json { “key”: ”data” “numericKey”: 42 }

json

file.json

{
“key”: ”data”
“numericKey”: 42
}

Слайд 34

json json.js const someObject = { key: ‘ayyy’, anotherKey: 45

json

json.js

const someObject = {
key: ‘ayyy’,
anotherKey: 45
}
const jsonString = JSON.stringify(someObject)
//

{"key":"ayyy","anotherKey":45}
const parsedObject = JSON.parse(jsonString)
parsedObject.key
// ayyy
Слайд 35

Практика

Практика

Имя файла: Networking.pptx
Количество просмотров: 47
Количество скачиваний: 0