GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • httpYac
  • CLI
  • VSCode
  • VSCode Notebook
  • Docker
  • Request
  • MetaData
  • Variables
  • Environments
  • Scripting
  • Assert
  • Comment
  • Hooks
  • Response

This view

  • Original page
  • New address

GeezerVison is showing httpyac.github.io — Hooks | httpYac

Hooks ​

httpYac uses a plugin-based architecture. Most of the features listed in this documentation are implemented as plugins using hooks.

The plugin architecture makes httpYac flexible and extensible. If you are interested in developing a plugin, check out the Plugin Development Guide.

Project local hooks ​

If you need access to the hooks API in your project and don't want to create a full plugin for it, you can use the httpyac.config.js file:

js
module.exports = {
	configureHooks: function (api) {
		api.hooks.responseLogging.addHook('removeSensitiveData', function (response) {
			if (response.request) {
				delete response.request.headers['authorization'];
			}
		});
	}
}
1
2
3
4
5
6
7
8
9

For more information, read the Plugin API.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.