Giter Club home page Giter Club logo

quic-go's Introduction

A QUIC implementation in pure Go

PkgGoDev Code Coverage

quic-go is an implementation of the QUIC protocol (RFC 9000, RFC 9001, RFC 9002) in Go, including the Unreliable Datagram Extension (RFC 9221). It has support for HTTP/3 (RFC 9114), including QPACK (RFC 9204).

In addition the RFCs listed above, it currently implements the IETF QUIC draft-29. Support for draft-29 will eventually be dropped, as it is phased out of the ecosystem.

Guides

We currently support Go 1.18.x and Go 1.19.x.

Running tests:

go test ./...

QUIC without HTTP/3

Take a look at this echo example.

Usage

As a server

See the example server. Starting a QUIC server is very similar to the standard lib http in go:

http.Handle("/", http.FileServer(http.Dir(wwwDir)))
http3.ListenAndServeQUIC("localhost:4242", "/path/to/cert/chain.pem", "/path/to/privkey.pem", nil)

As a client

See the example client. Use a http3.RoundTripper as a Transport in a http.Client.

http.Client{
  Transport: &http3.RoundTripper{},
}

Projects using quic-go

Project Description Stars
algernon Small self-contained pure-Go web server with Lua, Markdown, HTTP/2, QUIC, Redis and PostgreSQL support GitHub Repo stars
caddy Fast, multi-platform web server with automatic HTTPS GitHub Repo stars
go-ipfs IPFS implementation in go GitHub Repo stars
syncthing Open Source Continuous File Synchronization GitHub Repo stars
traefik The Cloud Native Application Proxy GitHub Repo stars
v2ray-core A platform for building proxies to bypass network restrictions GitHub Repo stars
cloudflared A tunneling daemon that proxies traffic from the Cloudflare network to your origins GitHub Repo stars
OONI Probe The Open Observatory of Network Interference (OONI) aims to empower decentralized efforts in documenting Internet censorship around the world. GitHub Repo stars
YoMo Streaming Serverless Framework for Geo-distributed System GitHub Repo stars

Contributing

We are always happy to welcome new contributors! We have a number of self-contained issues that are suitable for first-time contributors, they are tagged with help wanted. If you have any questions, please feel free to reach out by opening an issue or leaving a comment.

quic-go's People

Contributors

790715083 avatar aaronriekenberg avatar abirdcfly avatar apmattil avatar arashpayan avatar audriusbutkevicius avatar birneee avatar bt90 avatar carlosmn avatar dchaofei avatar ebi-yade avatar hareku avatar injust avatar jbenoist avatar juliens avatar julienschmidt avatar lorenzosaino avatar ltucker avatar lucas-clemente avatar marten-seemann avatar mengelbart avatar mw-jn avatar nmldiegues avatar q191201771 avatar renbou avatar tatianab avatar tobyxdd avatar twdkeule avatar vinozzz avatar ydnar avatar

Watchers

 avatar  avatar

quic-go's Issues

Draft 23

Transport

recovery

TLS

HTTP

  • Removed priority signaling (quicwg/base-drafts#2922)

  • Further changes to error codes (quicwg/base-drafts#2662):
    Fix by quic-go#2112

    • Error codes renumbered

    • HTTP_MALFORMED_FRAME replaced by HTTP_FRAME_ERROR,
      HTTP_ID_ERROR, and others

  • Clarify how unknown frame types interact with required frame
    sequence (quicwg/base-drafts#2867)

  • Describe interactions with the transport in terms of defined
    interface terms (quicwg/base-drafts#2857)

  • Require the use of the "http-opportunistic" resource (RFC 8164)
    when scheme is "http" (quicwg/base-drafts#2439)

  • Settings identifiers cannot be duplicated (quicwg/base-drafts#2979)

  • Changes to SETTINGS frames in 0-RTT (quicwg/base-drafts#2972):

    • Servers must send all settings with non-default values in their
      SETTINGS frame, even when resuming

    • If a client doesn't have settings associated with a 0-RTT
      ticket, it uses the defaults

    • Servers can't accept early data if they cannot recover the
      settings the client will have remembered

  • Clarify that Upgrade and the 101 status code are prohibited
    (quicwg/base-drafts#2898)

  • Clarify that frame types reserved for greasing can occur on any
    stream, but frame types reserved due to HTTP/2 correspondence are
    prohibited (quicwg/base-drafts#2997)

  • Unknown error codes cannot be treated as errors (quicwg/base-drafts#2998)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.