anchor.diff:  'WEBSOCK'({ws, _, {terminated, _}}, _Pipe, State) ->
      {stop, normal, State};
   
  -'WEBSOCK'({ws, _, Msg}, Pipe, #rest{mod = Mod, head = Head, env = Env} = State) ->
  -   EgType = opts:val('Accept', Env),
  -   InType = opts:val('Content-Type', undefined, Head),
  +'WEBSOCK'({ws, _, Msg}, Pipe, #rest{mod = Mod, inhead = InHead, eghead = EgHead} = State) ->
  +   EgType = opts:val('Content-Type', EgHead),
  +   InType = opts:val('Content-Type', undefined, InHead),
      case Mod:recv({EgType, InType}, Msg, req(State)) of
         ok ->
            {next_state, 'WEBSOCK', State};
  
positive.code:          pipe:a(Pipe, Error);
  
        ?XOR_L({Code, _} = Error) ->
           {ok, Http} = packetize({application, json}, {Code, jsx:encode([Error])}),
           lists:foreach(pipe:a(Pipe, _), Http)         
     end,
     {next_state, 'ACCEPT', #idle{route = Route}};      
  
negative.code:   ,export = undefined :: _               %% resource exports
    ,mthd   = undefined :: _
    ,uri    = undefined :: uri:uri()
    ,inhead = undefined :: _               %% ingress http headers
    ,eghead = undefined :: _               %% egress http headers
    ,env    = undefined :: _
  }).
  
  