Skip to content

Commit a0d669d

Browse files
committed
Bump version to v0.3.7.
1 parent 150136e commit a0d669d

File tree

3 files changed

+34
-12
lines changed

3 files changed

+34
-12
lines changed

CHANGELOG.md

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,55 +10,68 @@ The format is based on [Keep a Changelog], and this project adheres to
1010
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
1111
[semantic versioning]: https://semver.org/spec/v2.0.0.html
1212

13-
## [Unreleased]
13+
## [0.3.7] - 2024-07-01
1414

15-
- Serve the `.ws` and `.sse` endpoints from any directory
15+
### Added
16+
17+
- Added the `WEBSOCKET_ROOT` environment variable, which sets the root path to
18+
use for all websocket connections made by the `.ws` user interface (thanks
19+
[@maximthomas]).
20+
21+
### Changed
22+
23+
- The `.ws` and `.sse` endpoints are now served from every directory, not only
24+
the root path.
25+
- The websocket user interface served by `.ws` will now establish a websocket
26+
connection to the directory it is served from, not only the root path.
27+
- The websocket user interface now logs the URL that it connects to.
1628

1729
## [0.3.6] - 2023-10-31
1830

19-
- Add support for sending arbitrary headers in all responses
31+
- Add support for sending arbitrary headers in all responses.
2032

2133
## [0.3.5] - 2023-03-07
2234

23-
- Update dependencies to patch some security vulnerabilites
35+
- Update dependencies to patch some security vulnerabilites.
2436

2537
## [0.3.4] - 2022-12-23
2638

2739
### Fixed
2840

29-
- Fix rendering of the HTTP request line to match RFC-2616
41+
- Fix rendering of the HTTP request line to match RFC-2616.
3042

3143
## [0.3.3] - 2022-07-11
3244

3345
### Fixed
3446

35-
- Prevent rendering empty header value along real header values
36-
- Render all values for each header, not only the first
47+
- Prevent rendering empty header value along real header values.
48+
- Render all values for each header, not only the first.
3749

3850
## [0.3.2] - 2022-07-08
3951

4052
### Changed
4153

42-
- Headers are now displayed in alphabetical order (thanks [@marcofranssen])
54+
- Headers are now displayed in alphabetical order (thanks [@marcofranssen]).
4355

4456
## [0.3.1] - 2021-09-12
4557

4658
### Added
4759

48-
- Add the `SEND_SERVER_HOSTNAME` environment variable, set to `false` to prevent the server from sending its hostname
49-
- Add the `X-Send-Server-Hostname` request header
60+
- Add the `SEND_SERVER_HOSTNAME` environment variable, set to `false` to prevent
61+
the server from sending its hostname.
62+
- Add the `X-Send-Server-Hostname` request header.
5063

5164
## [0.3.0] - 2021-08-16
5265

5366
### Added
5467

55-
- Add the `/.sse` route, which echoes the request using server-sent events
68+
- Add the `/.sse` route, which echoes the request using server-sent events.
5669

5770
## [0.2.0] - 2021-06-03
5871

5972
### Added
6073

61-
- Add support for logging HTTP headers to stdout (thanks [@arulrajnet])
74+
- Add support for logging HTTP headers to stdout (thanks [@arulrajnet]).
6275

6376
## [0.1.0] - 2020-04-20
6477

@@ -74,11 +87,14 @@ The format is based on [Keep a Changelog], and this project adheres to
7487
[0.3.2]: https://github.com/jmalloc/echo-server/releases/v0.3.2
7588
[0.3.4]: https://github.com/jmalloc/echo-server/releases/v0.3.4
7689
[0.3.5]: https://github.com/jmalloc/echo-server/releases/v0.3.5
90+
[0.3.6]: https://github.com/jmalloc/echo-server/releases/v0.3.6
91+
[0.3.7]: https://github.com/jmalloc/echo-server/releases/v0.3.7
7792

7893
<!-- outside contributors -->
7994

8095
[@arulrajnet]: https://github.com/arulrajnet
8196
[@marcofranssen]: https://github.com/marcofranssen
97+
[@maximthomas]: https://github.com/maximthomas
8298

8399
<!-- version template
84100
## [0.0.1] - YYYY-MM-DD

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ SEND_HEADER_ACCESS_CONTROL_ALLOW_METHODS="*"
4545
SEND_HEADER_ACCESS_CONTROL_ALLOW_HEADERS="*"
4646
```
4747

48+
### WebSocket URL
49+
50+
Set the `WEBSOCKET_ROOT` environment variable to prefix all websocket
51+
requests made by the `.ws` user interface with a specific path.
52+
4853
## Running the server
4954

5055
The examples below show a few different ways of running the server with the HTTP

cmd/echo-server/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package main is the executable for the echo server.
12
package main
23

34
import (

0 commit comments

Comments
 (0)