http/server
2016-04-29 12:11:26   0  举报             
     
         
 HTTP/Server是一种用于创建和管理Web服务器的计算机软件。它允许用户通过Internet或局域网向其他计算机提供网页、文件和其他资源。HTTP/Server使用超文本传输协议(HTTP)作为通信标准,这是一种客户端-服务器模型,其中客户端(通常是Web浏览器)发送请求到服务器,服务器处理请求并返回响应。常见的HTTP/Server实现包括Apache、Nginx和Microsoft IIS等。这些服务器可以配置为支持各种功能,如SSL加密、动态内容生成、负载均衡和虚拟主机等。总之,HTTP/Server是构建和维护网站的关键组件,它们使用户能够轻松地访问和共享信息。
    作者其他创作
 大纲/内容
 HTTP request multiplexer: matches the URL of each incoming request against a list of registered patterns and calls the handler for the pattern that most closely matches the URL.
  URL
  + Scheme+ Opaque+ User *Userinfo+ Host+ Path+ RawPath+ RawQuery+ Fragment
  + operation1(params):returnType- operation2(params)- operation3()
  Server
  + Addr: string+ Handler: Handler+ ReadTimeout: time.Duration+ WriteTimeout: time.Duration+ MaxHeaderBytes: int+ TLSConfig: *tls.Config
  response
  - conn: *conn- req: *Request- writeHeader: bool- wroteContinue: bool- w: *bufio.Writer- cw: chunkWriter- sw *switchWriter- handlerHeader: Header- written: int64- contentLength: int64- status: int
  muxEntry
  - explicit: bool- h: Handler- pattern: string
    conn
  - remoteAddr: string- server: *Server- rwc: net.Conn- w: io.Writer- werr: error- mu: sync.Mutex- clientGone: bool
  ServeMux
  - mu: sync.RWMutex- m: map[string]muxEntry- hosts: bool
   
 
 
 
 
  0 条评论
 下一页
  
   
   
   
   
  
  
  
  
  
  
  
  
 