Skip to content

Commit a729071

Browse files
committed
Nitpicks
1 parent e82941f commit a729071

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/streamable_http.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func WithEndpointPath(endpointPath string) StreamableHTTPOption {
4141
// as a new session. No session id returned to the client.
4242
// The default is false.
4343
//
44-
// Notice: This is a convenience method. It's identical to set WithSessionIdManager option
44+
// Note: This is a convenience method. It's identical to set WithSessionIdManager option
4545
// to StatelessSessionIdManager.
4646
func WithStateLess(stateLess bool) StreamableHTTPOption {
4747
return func(s *StreamableHTTPServer) {
@@ -53,7 +53,8 @@ func WithStateLess(stateLess bool) StreamableHTTPOption {
5353

5454
// WithSessionIdManager sets a custom session id generator for the server.
5555
// By default, the server uses InsecureStatefulSessionIdManager (UUID-based; insecure).
56-
// Notice: it will override the WithStateLess option.
56+
// Note: Options are applied in order; the last one wins. If combined with
57+
// WithStateLess or WithSessionIdManagerResolver, whichever is applied last takes effect.
5758
func WithSessionIdManager(manager SessionIdManager) StreamableHTTPOption {
5859
return func(s *StreamableHTTPServer) {
5960
if manager == nil {

0 commit comments

Comments
 (0)