2018-02-05 21:05:59 +00:00
|
|
|
package session // import "github.com/docker/docker/api/server/router/session"
|
2017-05-15 19:59:15 +00:00
|
|
|
|
|
|
|
import (
|
2018-04-19 22:30:59 +00:00
|
|
|
"context"
|
2017-05-15 19:59:15 +00:00
|
|
|
"net/http"
|
|
|
|
|
2018-01-11 19:53:06 +00:00
|
|
|
"github.com/docker/docker/errdefs"
|
2017-05-15 19:59:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func (sr *sessionRouter) startSession(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
|
|
|
|
err := sr.backend.HandleHTTPRequest(ctx, w, r)
|
|
|
|
if err != nil {
|
2017-11-29 04:09:37 +00:00
|
|
|
return errdefs.InvalidParameter(err)
|
2017-05-15 19:59:15 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|