Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Unwrap() for responseWriterDelegator #1480

Commits on Mar 28, 2024

  1. Implement Unwrap() for responseWriterDelegator

    If the ResponseWriter implements any of the following methods,
    the ResponseController will call them as appropriate:
    
    Flush()
    FlushError() error // alternative Flush returning an error
    Hijack() (net.Conn, *bufio.ReadWriter, error)
    SetReadDeadline(deadline time.Time) error
    SetWriteDeadline(deadline time.Time) error
    EnableFullDuplex() error
    
    If the ResponseWriter doesn't implement the methods,
    the ResponseController will call Unwrap() method until it
    finds a ResponseWriter in the chain
    
    This commit implements Unwrap() method to simply return the
    wrapped ResponseWriter
    
    Signed-off-by: Igor Drozdov <ihardrozdov@gmail.com>
    igor-drozdov authored and Igor Drozdov committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    236f886 View commit details
    Browse the repository at this point in the history