https://tex.stackexchange.com/questions/84425/fancyhdr-equivalent-in-context

Hello,
I considered the solution proposed by Aditya. How to have a larger space between the title and the bottomframe ?
Thank you
Fabrice

\setupbodyfont[11pt]
\setupcolors[state=start]
\setuplayout
  [header=2\lineheight,
   headerdistance=\lineheight,
   backspace=2cm,
   width=middle,
   topspace=2cm]

\setupbackgrounds[header][text][frame=off, bottomframe=on]


\setupheader[style=bold]


\defineframed[headerframed]
             [frame=off,
              align=middle,
              width=fit]

\setupheadertexts[\headerframed{\red contrôle n\high{o}1 \\ }]
\setupheadertexts[\headerframed{Lycée JANSON DE SAILLY\\ 31 juillet 2017}][\headerframed{T ES 2 \\ Durée 1 heure 30}]

\starttext
\input knuth
\stoptext