cjstehno / ersatz

🤖 A simulated HTTP server for testing client code with configurable responses.
https://cjstehno.github.io/ersatz
Apache License 2.0
47 stars 5 forks source link

Rework user guide #46

Closed cjstehno closed 7 years ago

cjstehno commented 7 years ago

Rework the user guide to have better organization and more details and examples about each feature.

cjstehno commented 7 years ago

Draft of new guide outline:


Introduction
Getting Started
Sever
    Lifecycle
    Configuration (note that can be in server ctor or instance)
        - Closure
        - Consumer
    httpPort/httpsPort
    httpUrl/httpsUrl
    start/stop
    verify
Configuration
    Authentication
        BASIC
        DIGEST
    Auto-start
    Decoder
    Encoder
    Expectations
    Expects
    Https
    keystore
Decoders (more examples)
Encoders (more examples)
Cookies
Matchers
    - also using closures as matchers
Multipart
    Request
    Response
Compression
Use Case Examples
    Form data
    File upload