Networking basic concept

轉(zhuǎn)自Udacity
Concept List
Network — the system of interconnected computer networks from which we can access data.

Data — images, text, video, or any media that can be used by our apps.

Protocol — a way of communicating; standard operating procedure; the rules for communication

HTTP (Hypertext Transfer Protocol) — a protocol or “handshake” that defines how messages (and data) are sent and received by computers; the underlying protocol for the World Wide Web

Client — a computer that requests data (or services) from a server

Server — a computer that provides data (or services) to a client upon request

HTTP request — a request for data (or a resource) that a client makes to a server; there are various types of HTTP requests called “HTTP methods”

URL (Uniform Resource Locator) — specifies the location for retrieving data over the web; can be thought of as the name of a file on the World Wide Web, because it usually refers to a file on some machine on the network

HTTP method — specifies the type of HTTP request that is being made; in this course, we will also called these (HTTP) request types

HTTP status code — a number returned in response to an HTTP request which indicates the result of the request; you may also hear these referred to as “response codes” or “status messages”; here is a nice listing of different HTTP status codes

HTTP GET request — a type of HTTP request where a client requests a specified resource from a server

Completion handler — a block of code that is executed after something completes like a network task

HTTPS — a protocol built on top of HTTP that ensures data sent over the network is encrypted, or concealed, from unauthorized access

ATS (App Transport Security) — Apple’s set of security standards for ensuring our apps keep users’ data safe

Singleton — a special kind of object that can only be instantiated once

NSURL — represents a URL

NSURLSession — manages network requests for our app

NSURLSessionConfiguration — specify settings (ex. timeout interval) for a NSURLSession

NSURLSessionTask — a network task that can be executed

NSURLSessionDataTask — subclass of NSURLSessionTask; downloads data directly into memory

NSURLSessionDownloadTask — subclass of NSURLSessionTask; downloads data to a temporary file

NSURLSessionUploadTask — subclass of NSURLSessionTask; specialized for uploading data

NSData — represents data as raw bytes

NSURLResponse — a container for information about the response to a network request such its status code

NSError — a container for information about an error condition

Web service — a software application that enables the communication of data over a network

API (Application Program Interface) — a set of methods that are specialized for a purpose; many web services are also referred to as APIs or “network” APIs

JSON (JavaScript Object Notation) — a data format used frequently to communicate data over a network

Parameters (in a URL) — a value specified in a URL usually in the format of “parameter=value”

ASCII (American Standard Code for Information Interchange) — a simple way of representing characters in a computer

URL escaping/encoding — a mechanism for ensuring that all characters in a URL are valid ASCII characters

API key — a value distributed by an API provider that uniquely identifies applications using it service

NSURLRequest — represents a configurable URL that can specify properties such as the HTTP method type

Serialization — converting an object into a stream of bytes; this is often done to send an object over the network so that it can be recreated somewhere else

Deserialization — converting a stream of bytes into an object; the opposite of serialization

NSJSONSerialization — a class used to convert bytes of JSON data into objects or vice versa

NSDictionary — Objective-C’s version of a Dictionary; sometimes we must use it in Swift when working with certain APIs like NSJSONSerialization

NSArray — Objective-C’s version of an Array; sometimes we must use it in Swift when working with certain APIs like NSJSONSerialization

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末爬立,一起剝皮案震驚了整個濱河市书幕,隨后出現(xiàn)的幾起案子淋淀,更是在濱河造成了極大的恐慌,老刑警劉巖疙赠,帶你破解...
    沈念sama閱讀 222,627評論 6 517
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機惩系,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 95,180評論 3 399
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來如筛,“玉大人蛆挫,你說我怎么就攤上這事∶钍颍” “怎么了?”我有些...
    開封第一講書人閱讀 169,346評論 0 362
  • 文/不壞的土叔 我叫張陵瞧剖,是天一觀的道長拭嫁。 經(jīng)常有香客問我,道長抓于,這世上最難降的妖魔是什么做粤? 我笑而不...
    開封第一講書人閱讀 60,097評論 1 300
  • 正文 為了忘掉前任,我火速辦了婚禮捉撮,結(jié)果婚禮上怕品,老公的妹妹穿的比我還像新娘。我一直安慰自己巾遭,他們只是感情好肉康,可當我...
    茶點故事閱讀 69,100評論 6 398
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著灼舍,像睡著了一般吼和。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上骑素,一...
    開封第一講書人閱讀 52,696評論 1 312
  • 那天炫乓,我揣著相機與錄音,去河邊找鬼。 笑死末捣,一個胖子當著我的面吹牛侠姑,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播箩做,決...
    沈念sama閱讀 41,165評論 3 422
  • 文/蒼蘭香墨 我猛地睜開眼莽红,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了卒茬?” 一聲冷哼從身側(cè)響起船老,我...
    開封第一講書人閱讀 40,108評論 0 277
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎圃酵,沒想到半個月后柳畔,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 46,646評論 1 319
  • 正文 獨居荒郊野嶺守林人離奇死亡郭赐,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 38,709評論 3 342
  • 正文 我和宋清朗相戀三年薪韩,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片捌锭。...
    茶點故事閱讀 40,861評論 1 353
  • 序言:一個原本活蹦亂跳的男人離奇死亡俘陷,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出观谦,到底是詐尸還是另有隱情拉盾,我是刑警寧澤,帶...
    沈念sama閱讀 36,527評論 5 351
  • 正文 年R本政府宣布豁状,位于F島的核電站捉偏,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏泻红。R本人自食惡果不足惜夭禽,卻給世界環(huán)境...
    茶點故事閱讀 42,196評論 3 336
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望谊路。 院中可真熱鬧讹躯,春花似錦、人聲如沸缠劝。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,698評論 0 25
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽惨恭。三九已至酷麦,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間喉恋,已是汗流浹背沃饶。 一陣腳步聲響...
    開封第一講書人閱讀 33,804評論 1 274
  • 我被黑心中介騙來泰國打工母廷, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人糊肤。 一個月前我還...
    沈念sama閱讀 49,287評論 3 379
  • 正文 我出身青樓琴昆,卻偏偏與公主長得像,于是被迫代替她去往敵國和親馆揉。 傳聞我的和親對象是個殘疾皇子业舍,可洞房花燭夜當晚...
    茶點故事閱讀 45,860評論 2 361

推薦閱讀更多精彩內(nèi)容