domainsocket/

directory
v0.0.0-...-c93e153 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2018 License: MIT

README

8.2 Unixドメインソケット版のHTTPサーバ/クライアントを実装する

Unixドメインソケットを利用して、カーネル内部で完結する高速なネットワークインタフェースを利用したHTTPサーバ/クライアントを実装する。 ソケットファイル経由で通信を行う。

Result

$ gor client/main.go
HTTP/1.0 200 OK
Connection: close

Hello World
$ gor server/main.go
Server is running at /var/folders/8f/9ychhbns65s45gg8ng567nq51s7sk2/T/unixdomainsocket-sample
Accept
get / HTTP/1.1
Host: localhost:8888
User-Agent: Go-http-client/1.1

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL