Mercurial > urweb
comparison include/urweb.h @ 1451:b6ce8ef0ea88
Before allowing an indirect return, check (dynamically, for now) that we aren't in an RPC handler
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 17 Apr 2011 13:43:00 -0400 |
parents | 36f7d1debb37 |
children | 2f5fd248588d |
comparison
equal
deleted
inserted
replaced
1450:d40104c112df | 1451:b6ce8ef0ea88 |
---|---|
236 void uw_noPostBody(uw_context); | 236 void uw_noPostBody(uw_context); |
237 void uw_postBody(uw_context, uw_Basis_postBody); | 237 void uw_postBody(uw_context, uw_Basis_postBody); |
238 int uw_hasPostBody(uw_context); | 238 int uw_hasPostBody(uw_context); |
239 uw_Basis_postBody uw_getPostBody(uw_context); | 239 uw_Basis_postBody uw_getPostBody(uw_context); |
240 | 240 |
241 void uw_mayReturnIndirectly(uw_context); | |
241 __attribute__((noreturn)) void uw_return_blob(uw_context, uw_Basis_blob, uw_Basis_string mimeType); | 242 __attribute__((noreturn)) void uw_return_blob(uw_context, uw_Basis_blob, uw_Basis_string mimeType); |
242 __attribute__((noreturn)) void uw_redirect(uw_context, uw_Basis_string url); | 243 __attribute__((noreturn)) void uw_redirect(uw_context, uw_Basis_string url); |
243 | 244 |
244 uw_Basis_time uw_Basis_now(uw_context); | 245 uw_Basis_time uw_Basis_now(uw_context); |
245 uw_Basis_time uw_Basis_addSeconds(uw_context, uw_Basis_time, uw_Basis_int); | 246 uw_Basis_time uw_Basis_addSeconds(uw_context, uw_Basis_time, uw_Basis_int); |