Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleResponseWriter_trailers (0.31 sec)

  1. src/net/http/example_test.go

    			return
    		}
    		fmt.Fprintf(w, "Welcome to the home page!")
    	})
    }
    
    // HTTP Trailers are a set of key/value pairs like headers that come
    // after the HTTP response, instead of before.
    func ExampleResponseWriter_trailers() {
    	mux := http.NewServeMux()
    	mux.HandleFunc("/sendstrailers", func(w http.ResponseWriter, req *http.Request) {
    		// Before any call to WriteHeader or Write, declare
    		// the trailers you will set during the HTTP
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 19 16:12:45 UTC 2021
    - 5.4K bytes
    - Viewed (0)
Back to top