anchor.diff:  			handler_after_loop(Req2, State, Handler, HandlerState2,
   				{normal, shutdown});
   		{loop, Req2, HandlerState2} ->
  -			handler_before_loop(Req2, State, Handler, HandlerState2);
  +			handler_after_callback(Req2, State, Handler, HandlerState2);
   		{loop, Req2, HandlerState2, hibernate} ->
  -			handler_before_loop(Req2, State#state{hibernate=true},
  +			handler_after_callback(Req2, State#state{hibernate=true},
   				Handler, HandlerState2)
   	catch Class:Reason ->
   		error_logger:error_msg(
  
positive.code: 		{Error, Socket, Reason} ->
  			terminate_request(Req, State, Handler, HandlerState,
  				{error, Reason});
  		{cowboy_req, resp_sent} ->
  			handler_before_loop(Req, State#state{resp_sent=true},
  				Handler, HandlerState);
  		{timeout, TRef, ?MODULE} ->
  			handler_after_loop(Req, State, Handler, HandlerState,
  				{normal, timeout});
  
negative.code: 		{ok, Req2, HandlerState} ->
  			handler_handle(Req2, State, Handler, HandlerState);
  		{loop, Req2, HandlerState} ->
  			handler_after_callback(Req2, State, Handler, HandlerState);
  		{loop, Req2, HandlerState, hibernate} ->
  			handler_after_callback(Req2, State#state{hibernate=true},
  				Handler, HandlerState);
  		{loop, Req2, HandlerState, Timeout} ->
  			State2 = handler_loop_timeout(State#state{loop_timeout=Timeout}),
  			handler_after_callback(Req2, State2, Handler, HandlerState);
  		{loop, Req2, HandlerState, Timeout, hibernate} ->
  			State2 = handler_loop_timeout(State#state{
  				hibernate=true, loop_timeout=Timeout}),
  			handler_after_callback(Req2, State2, Handler, HandlerState);
  		{shutdown, Req2, HandlerState} ->
  			terminate_request(Req2, State, Handler, HandlerState,
  				{normal, shutdown});
  