/* ---------------- PUT ROUTES ----------------
517493
protected final <REQ, RESP> Route put(RouteAction<Request<REQ>, Response<RESP>> action,
		RequestType<REQ> req, ResponseType<RESP> resp) {
		return createEntityRoute(HttpMethod.PUT, "", action, req, resp);
	}
1005589
function(newRoutes)
    {
        for(var key in newRoutes)
        {
            if(routes.hasOwnProperty(key))
            {
                if(typeof routes[key] == 'Array')
                {
                    routes[key].push(newRoutes[key]);
                }
                else
                {
                    routes[key] = [routes[key],newRoutes[key]];
                }
            }
            else
            {
                routes[key] = newRoutes[key];
            }
        }
    }
1252494
function PushRoute (router, request, scheme, handler, limits, validate, upload) {
		let args = [scheme, limits], filt = v=>!!v;
		args = (!!validate ? args.concat([validate]).filter(filt) : args);
		args = (!!upload   ? args.concat([upload  ]).filter(filt) : args);
		args = args.concat([handler]); router[request](...args);
	}
103513
func (r *Router) Put(pattern string, handler http.HandlerFunc) {
	r.AddRoute(PUT, pattern, handler)
}
87107
def put_string(path, str)
      path = @uri.merge(path).path
      res = @handler.request_sending_body(:put, path, str, @headers)
      res.body
    end
782040
function saveRouteToTheList(parsedUrl, action) {
                // used to add options routes later
                if (typeof allRoutesList[parsedUrl.url] === 'undefined') {
                    allRoutesList[parsedUrl.url] = [];
                }
                allRoutesList[parsedUrl.url].push(action);
            }
405350
func (r *Router) Put(path string, h http.HandlerFunc) {
	r.rtr.PUT(r.prefix+path, r.handle(path, h))
}
1251499
public Router put(@NotNull final String pattern, @NotNull final IMiddleware... handlers) {
        addPattern("PUT", pattern, handlers, putBindings);
        return this;
    }
381563
function (data, routes) {
		var tempRoutes = {};

		data.forEach(function (r) {
			if (r && r.routes) {
				for (var key in r.routes) {
					if (key && r.routes[key] && !routes[r.rootApiPath + '/' + key])
						routes[r.rootApiPath + '/' + key] = r.routes[key]
				}
			}
		});
	}
1039653
function replaceWith(to, params, query) {
        location.replace(Router.makePath(to, params, query));
      }
792948
function setRoutesInState(routes) {
    const routesByName = {};
    routes.forEach(route => {
        routesByName[route.name] = route.route;
    });
    return routesByName;
}
286951
func (r *Router) PUT(route string, handler interface{}) *Router {
	r.Handle(MethodPUT, route, handler)
	return r
}
1024122
public static function put( $route = null, $callback = null ) {
		// Make sure that our parameters are what they say they are
		$args = self::smart_parameters( func_get_args() );

		return self::route( 'PUT', $args[ 'route' ], $args[ 'callback' ] );
	}
497990
def put(path, params)
      headers = {}

      request('PUT', path, params.to_json, headers) do |resp|
        yield(resp) if block_given?
      end
    end
473001
function addRoutes( app ) {
  router.get( '/', dbRequestHandler )
  app.use( router )
  app.use( express.static( 'public' ) )
}
706634
function put(uri, data, locals) {
  var model = files.getLayoutModules(getLayoutName(uri)),
    callHooks = _.get(locals, 'hooks') !== 'false',
    result;

  if (model && _.isFunction(model.save) && callHooks) {
    result = models.put(model, uri, data, locals);
  } else {
    result = dbOps.putDefaultBehavior(uri, data);
  }

  return result;
}
874247
function action_putpost(si,args,done) {
    var ent_type = parse_ent(args)

    var ent = si.make(ent_type.zone,ent_type.base,ent_type.name)

    var data = args.data || {}

    var good = _.filter(_.keys(data),function(k){return !~k.indexOf('$')})

    var fields = _.pick(data,good)
    ent.data$(fields)

    if( null != ent_type.entid ) {
      ent.id = ent_type.entid
    }
    else if( null != data.id$ && options.allow_id ) {
      ent.id$ = data.id$
    }

    save_aspect(si,{args:args,ent:ent},done,function(ctxt,done){
      ctxt.ent.save$(function(err,ent){
        var data = ent ? ent.data$(true,'string') : null
        done(err, data)
      })
    })
  }