webmock

command module
v0.0.0-...-429668a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 10 Imported by: 0

README

webmock

Usage

$ go run main.go

New Handler

local router = require('router')

router.handle("/path/to", function(req, res)
  -- show host
  print(req.host)

  res.header("X-Test-Name", "aaabbcc")
  res.write('OK')
end)

router.handle("/4xx", function(req, res)
  res.header("X-Test-Name", "required Authorization")
  res.write_header(401)
  res.write('')
end)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL