Skip to content

XClacks is a Servlet 3.0 filter adding the http header X-Clacks-Overhead to responses

License

Notifications You must be signed in to change notification settings

buckcri/xclacks

Repository files navigation

At last, Sir Terry, we must walk together.

XClacks

About

XClacks is a Servlet 3.0 filter adding the http header X-Clacks-Overhead: GNU Terry Pratchett to all responses.

Please see this The Guardian article for information about the origins and purpose of that header.

How To Use

Add this jar to your classpath. You may also need to configure servlet filter classpath scanning in your framework/embedded web server:

Spring Boot 3.x or higher

Add @ServletComponentScan("io.github.buckcri.xclacks"), for example when declaring @SpringBootApplication:

import org.springframework.boot.web.servlet.ServletComponentScan

@SpringBootApplication
@ServletComponentScan("io.github.buckcri.xclacks")
class MySpringBootApplication

Download

XClacks is available on Maven Central.

About

XClacks is a Servlet 3.0 filter adding the http header X-Clacks-Overhead to responses

Topics

Resources

License

Stars

Watchers

Forks

Languages