项目作者: ring-clojure

项目描述 :
Clojure specs for Ring
高级语言: Clojure
项目地址: git://github.com/ring-clojure/ring-spec.git
创建时间: 2016-09-19T00:34:45Z
项目社区:https://github.com/ring-clojure/ring-spec

开源协议:

下载


Ring-Spec

A library for Ring that contains specs for requests, responses
and handlers.

Installation

Add the following dependency to your project file:

  1. [ring/ring-spec "0.0.4"]

Usage

This library exposes the following specs:

  • :ring/request
  • :ring/response
  • :ring/handler

These can be used to validate requests, responses and handler
functions respectively.

The request and response specs also have generators associated with
them, allowing valid Ring requests and responses to be generated for
use with test.check.

License

Copyright © 2018 James Reeves

Distributed under the MIT License, the same as Ring.