File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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.
4646func 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.
5758func WithSessionIdManager (manager SessionIdManager ) StreamableHTTPOption {
5859 return func (s * StreamableHTTPServer ) {
5960 if manager == nil {
You can’t perform that action at this time.
0 commit comments