Skip to content

Releases: dreamhead/moco

v1.6.0

20 Apr 13:04

Choose a tag to compare

APIs

  • sse API for Server-Sent Events streaming support
    • event for named SSE event
    • data for anonymous SSE event
    • sse(...).delay(ms) for global delay between all events
    • sse(...).delay(duration, TimeUnit) for global delay with time unit
    • Event modifiers: id, retry, delay
    • event.delay(duration, TimeUnit) for event delay with time unit
  • SSE events from file
  • SSE proxy: proxy forwards SSE streams from remote server
  • SSE JSON API
    • Array format for inline events
    • Object format with delay and events
    • Object format with delay as {duration, unit} for time unit
    • File format with delay

Implementation Details

  • Replace logback with tinylog
  • Optimize ProGuard configuration to exclude unused resources

v1.5.0

02 Sep 12:51

Choose a tag to compare

APIs

  • req.client.port is supported in template
  • sameSite cookie attribute is supported
  • cors in response is supported for CORS
    • allowOrigin(Access-Control-Allow-Credentials)
    • allowCredentials(Access-Control-Allow-Credentials)
    • exposeHeaders(Access-Control-Expose-Headers)
    • maxAge(Access-Control-Max-Age)
    • allowMethods(Access-Control-Allow-Methods)
    • allowHeaders(Access-Control-Allow-Headers)