Created
February 19, 2018 20:17
-
-
Save thbwd/44d0649842df32cdad6267d6b12225a2 to your computer and use it in GitHub Desktop.
HTTP Request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
๐ฆ sockets ๐ด | |
๐ฆ files ๐ด | |
๐ฎ Represents the HTTP headers and status code ๐ฎ | |
๐ ๐ ๐ | |
๐ฐ statusCode ๐ | |
๐ฐ headers ๐ฏ๐๐ก | |
๐ ๐ @statusCode ๐ @headers ๐ฏ๐๐ก ๐ | |
๐ฎ statusCode @statusCode | |
๐ฎ headers @headers | |
๐ | |
๐ ๐ โก๏ธ ๐ฏ๐๐ก ๐ | |
๐ headers | |
๐ | |
๐ ๐ณ โก๏ธ ๐ ๐ | |
๐ statusCode | |
๐ | |
๐ | |
๐ฎ Represents the destination of an HTTP Request ๐ฎ | |
๐ ๐ ๐ | |
๐ฐ host ๐ก | |
๐ฐ path ๐ก | |
๐ฐ port ๐ | |
๐ฐ method ๐ก | |
๐ฐ headers ๐ฏ๐๐ก | |
๐ฐ body ๐ฌ๐ | |
๐ฌ๐ ๐ url ๐ก @method ๐ก ๐ | |
๐ โ๐ผ url ๐คhttp://๐ค ๐ | |
๐โก๏ธ | |
๐ | |
๐ฎ host ๐ค๐ค | |
๐ฎ path ๐ค๐ค | |
๐ฎ port 80 | |
๐ฆ protocolless ๐ช url 7 ๐ url | |
๐๐ฆ :index ๐ protocolless ๐ค:๐ค ๐ | |
๐ฆ first/Index ๐บ๐ protocolless ๐ค/๐ค | |
๐ฎ port ๐บ๐ ๐ช protocolless :index โ first/Index :index 10 | |
๐ฎ host ๐ช protocolless 0 :index | |
๐ฎ path ๐ช protocolless first/Index ๐ protocolless | |
๐ | |
๐ ๐ | |
๐ฆ first/Index ๐บ๐ protocolless ๐ค/๐ค | |
๐ฎ host ๐ช protocolless 0 first/Index | |
๐ฎ path ๐ช protocolless first/Index ๐ protocolless | |
๐ | |
๐ฎ method @method | |
๐ฎ headers ๐ฏ | |
๐คHost๐ค host | |
๐คUser-Agent๐ค ๐คPavel Chekov๐ค | |
๐ | |
๐ | |
๐ ๐น string ๐ก โก๏ธ ๐ก ๐ | |
๐ฎ outString ๐ค๐ค | |
๐ symbol string ๐ | |
๐ฆ code ๐symbol | |
๐๐๐โก๏ธ code 0x31 โฌ ๏ธ code 0x39 ๐๐โก๏ธ code 0x41 โฌ ๏ธ code 0x5A ๐๐โก๏ธ code 0x61 โฌ ๏ธ code 0x7A | |
๐๐ symbol ๐- ๐๐ symbol ๐_ ๐๐ symbol ๐. ๐ symbol ๐~ย ๐ | |
๐ฎ outString ๐ outString symbol | |
๐ | |
๐ ๐ | |
๐ byte ๐๐กsymbol ๐ | |
๐ฎ outString ๐ช outString ๐ค%๐ค ๐ก byte 16 ๐ช | |
๐ | |
๐ | |
๐ | |
๐ outString | |
๐ | |
๐ฎ | |
Sets the body to the data of the dictionary as `application/x-www-form-urlencoded` and sets | |
the according headers. | |
๐ฎ | |
๐ ๐ง dict ๐ฏ๐๐ก ๐ | |
๐ฆ outStrings ๐ท๐จ๐๐ก๐ธ | |
๐ท headers ๐คContent-Type๐ค ๐คapplication/x-www-form-urlencoded๐ค | |
๐ key ๐ dict ๐ | |
๐ป outStrings ๐ช ๐น๐ key ๐ค=๐ค ๐น๐ ๐บ๐ฝ dict key ๐ช | |
๐ | |
๐ฉ๐ ๐๐ท๐ก๐จ outStrings ๐ค&๐ค | |
๐ | |
๐ฎ Sets the body to `data` and sets the `Content-Length` header. ๐ฎ | |
๐ ๐ฉ data ๐ ๐ | |
๐ฎ body data | |
๐ท headers ๐คContent-Length๐ค ๐ก๐data 10 | |
๐ | |
๐ฎ Returns the path to the requested resource. ๐ฎ | |
๐ ๐บ โก๏ธ ๐ก ๐ | |
๐ path | |
๐ | |
๐ฎ Returns the server address. ๐ฎ | |
๐ ๐ โก๏ธ ๐ก ๐ | |
๐ host | |
๐ | |
๐ฎ Returns the server port. ๐ฎ | |
๐ ๐ช โก๏ธ ๐ ๐ | |
๐ port | |
๐ | |
๐ฎ Returns the HTTP method. ๐ฎ | |
๐ โ โก๏ธ ๐ก ๐ | |
๐ method | |
๐ | |
๐ฎ Returns the headers in HTTP format. ๐ฎ | |
๐ ๐ โก๏ธ ๐ก ๐ | |
๐ฎ outString ๐ค๐ค | |
๐ key ๐ headers ๐ | |
๐ฎ outString ๐ช outString key ๐ค: ๐ค ๐บ๐ฝ headers key ๐คโrโn๐ค๐ช | |
๐ | |
๐ outString | |
๐ | |
๐ฎ Returns the body data to be sent to the server. ๐ฎ | |
๐ ๐จ โก๏ธ ๐ฌ๐ ๐ | |
๐ body | |
๐ | |
๐ | |
๐ฎ Represents a connection to an HTTP server. ๐ฎ | |
๐ ๐ ๐ | |
๐ฐ socket ๐ | |
๐ฐ headerOverflowData ๐ฌ๐ | |
๐ฐ request ๐ | |
๐ ๐ @request ๐ ๐ | |
๐ฎ request @request | |
๐ฎ socket ๐บ ๐ท๐๐ ๐request ๐ชrequest | |
๐ | |
๐ ๐ callback ๐๐๐ โก๏ธ ๐ ๐ | |
๐ฌ socket ๐ ๐ชโrequest ๐ค ๐ค ๐บrequest ๐ค HTTP/1.1โrโn๐ค ๐request ๐คโrโn๐ค๐ช | |
๐๐ฆ data ๐จ request ๐ | |
๐ฌ socket data | |
๐ | |
๐ฆ response ๐๐ ๐ฎ๐ | |
๐ฆ headers ๐response | |
๐ ๐ โ๐ณresponse 100 4 ๐ | |
๐ ๐ค4xx error๐ค | |
๐ | |
๐ ๐ โ๐ณresponse 100 3 ๐ | |
๐ ๐ ๐ณresponse 301 ๐ | |
๐๐ฆ location ๐ฝ headers ๐คlocation๐ค ๐ | |
๐๐ฆ nrequest ๐ท๐๐ location โrequest ๐ | |
๐ฎ request nrequest | |
๐๐ callback | |
๐ | |
๐ ๐ | |
๐ ๐ช ๐คCannot follow ๐ค location ๐ช | |
๐ | |
๐ | |
๐ ๐ | |
๐ ๐คNo Location given for 301๐ค | |
๐ | |
๐ | |
๐ | |
๐ โ ๐ ๐ณresponse 204 ๐ | |
๐๐ฆ contentLength ๐ฝ headers ๐คcontent-length๐ค ๐ | |
๐๐ ๐บ๐ contentLength 10 callback | |
๐ | |
๐ ๐ | |
๐๐ callback | |
๐ | |
๐ | |
๐ response | |
๐ | |
๐ฎ Parses the status-line and message-headers into a ๐ instance ๐ฎ | |
๐ ๐ ๐ message ๐ก โก๏ธ ๐ ๐ | |
๐ฆ headers ๐ซ message ๐คโrโn๐ค | |
๐ฆ statusLineParts ๐ฃ ๐บ๐ฝ headers 0 ๐ ๐จ headers 0 | |
๐ฆ headerDict ๐ท๐ฏ๐๐ก๐ธ | |
๐ header headers ๐ | |
๐ฆ :index ๐บ๐ header ๐ค:๐ค | |
๐ท headerDict ๐ช๐ช header 0 :index ๐ง๐ช header โ :index 1 ๐ header | |
๐ | |
๐ ๐ท๐๐ ๐บ๐ ๐บ๐ฝ statusLineParts 1 10 headerDict | |
๐ | |
๐ฎ Receive start-line and headers as string ๐ฎ | |
๐ ๐ ๐ฎ โก๏ธ ๐ก ๐ | |
๐ฆ endOfHeaders ๐๐คโrโnโrโn๐ค | |
๐ฎ data ๐บ ๐ socket 140 | |
๐ ๐ ๐ | |
๐ฆ index ๐ data endOfHeaders | |
๐๐ฆ index index ๐ | |
๐ โ๏ธ โ 4 index ๐ data ๐ | |
๐ฎ headerOverflowData ๐ช data โ 4 index ๐ data | |
๐ | |
๐ ๐บ๐ก ๐ช data 0 index | |
๐ | |
๐ฎ data ๐ data ๐บ ๐ socket 140 | |
๐ | |
๐ ๐ค๐ค | |
๐ | |
๐ฎ | |
Receives body with the given length and calls the callback for every | |
received data package. | |
๐ฎ | |
๐ ๐ ๐ wanted ๐ callback ๐๐๐ ๐ | |
๐ฎ stillWanted wanted | |
๐๐ฆ ov headerOverflowData ๐ | |
๐ฎ stillWanted โ stillWanted ๐ ov | |
๐ญ callback ov | |
๐ | |
๐ โถ๏ธ stillWanted 0 ๐ | |
๐ฆ data ๐บ ๐ socket stillWanted | |
๐ฎ stillWanted โ stillWanted ๐ data | |
๐ญ callback data | |
๐ | |
๐ | |
๐ฎ | |
Receives body of unknown length and calls the callback for every received | |
data package. | |
๐ฎ | |
๐ ๐ ๐ callback ๐๐๐ ๐ | |
๐๐ฆ ov headerOverflowData ๐ | |
๐ญ callback ov | |
๐ | |
๐๐ฆ data ๐ socket 500 ๐ | |
๐ญ callback data | |
๐ | |
๐ | |
๐ | |
๐ ๐ | |
๐ฆ file ๐บ ๐ท๐๐ ๐คmaster.zip๐ค | |
๐ด ๐ฆ request ๐บ๐ท๐๐๐คhttp://github.com/emojicode/emojicode/archive/master.zip๐ค ๐คGET๐ค | |
๐ฆ request ๐บ๐ท๐๐๐คhttp://127.0.0.1/~theo/post.php๐ค ๐คPOST๐ค | |
๐ง request ๐ฏ ๐คname๐ค ๐คBรถle Mรผller๐ค ๐คpizza@๐ค ๐คDiavolo//๐ค ๐ค!๐ค ๐ค3322๐ค ๐ | |
๐๐ท๐๐ request ๐ d ๐ | |
๐๐ฆ string ๐กd ๐ | |
๐ string | |
๐ | |
๐ ๐ | |
๐ ๐ค!!!Unpritnable!!!๐ค | |
๐ | |
๐ด โ๏ธ file d | |
๐ | |
๐ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment