Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for PushOptions (0.1 sec)

  1. src/net/http/h2_bundle.go

    func (w *http2responseWriter) Push(target string, opts *PushOptions) error {
    	st := w.rws.stream
    	sc := st.sc
    	sc.serveG.checkNotOn()
    
    	// No recursive pushes: "PUSH_PROMISE frames MUST only be sent on a peer-initiated stream."
    	// http://tools.ietf.org/html/rfc7540#section-6.6
    	if st.isPushed() {
    		return http2ErrRecursivePush
    	}
    
    	if opts == nil {
    		opts = new(PushOptions)
    	}
    
    	// Default options.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 364.1K bytes
    - Viewed (0)
Back to top