aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple/add_header_class.py
blob: 6443798a9239632ad1196b989701b707c908ec87 (plain)
1
2
3
4
5
6
7
class AddHeader:
    def response(self, flow):
        flow.response.headers["newheader"] = "foo"


def start():
    return AddHeader()
{ color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
--- a/libelf/libelf.h
+++ b/libelf/libelf.h
@@ -35,6 +35,11 @@
 /* Get the ELF types.  */
 #include <elf.h>
 
+#ifndef _LIBC
+#ifndef __mempcpy
+#define __mempcpy mempcpy
+#endif
+#endif
 
 /* Known translation types.  */
 typedef enum