github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/map13.gno (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"github.com/gnolang/gno/_test/net/http"
     7  )
     8  
     9  const acceptEncoding = "Accept-Encoding"
    10  
    11  func main() {
    12  	opts := &http.PushOptions{
    13  		Header: http.Header{
    14  			acceptEncoding: []string{"gzip"},
    15  		},
    16  	}
    17  	fmt.Println(opts)
    18  }
    19  
    20  // Output:
    21  // &{ map[Accept-Encoding:[gzip]]}