code: func NewOptions(req *http.Request) (*Options, error) {
  	tty := req.FormValue(api.ExecTTYParam) == "1"
  	stdin := req.FormValue(api.ExecStdinParam) == "1"
  	stdout := req.FormValue(api.ExecStdoutParam) == "1"
  	stderr := req.FormValue(api.ExecStderrParam) == "1"
  	if tty && stderr {
  		// TODO: make this an error before we reach this method
  		klog.V(4).Infof("Access to exec with tty and stderr is not supported, bypassing stderr")
  		stderr = false
  	}
  
  	if !stdin && !stdout && !stderr {
  		return nil, fmt.Errorf("you must specify at least 1 of stdin, stdout, stderr")
  	}
  
  	return &Options{
  		Stdin:  stdin,
  		Stdout: stdout,
  		Stderr: stderr,
  		TTY:    tty,
  	}, nil
  }
docs: // NewOptions creates a new Options from the Request.