Uses of Class
com.soklet.HttpRequestResult
Packages that use HttpRequestResult
-
Uses of HttpRequestResult in com.soklet
Methods in com.soklet that return HttpRequestResultModifier and TypeMethodDescriptionHttpRequestResult.Builder.build()HttpRequestResult.Copier.finish()static @NonNull HttpRequestResultHttpRequestResult.fromMarshaledResponse(@NonNull MarshaledResponse marshaledResponse) Creates aHttpRequestResultfrom a marshaled response without additional customization.McpRequestResult.getHttpRequestResult()Provides the low-level Soklet request result associated with the simulated MCP request.McpRequestResult.ResponseCompleted.getHttpRequestResult()McpRequestResult.StreamOpened.getHttpRequestResult()SseRequestResult.HandshakeAccepted.getHttpRequestResult()The initial result of the handshake, as written back to the client (note that the connection remains open).SseRequestResult.HandshakeRejected.getHttpRequestResult()The result of the handshake, as written back to the client (the connection is then closed).SseRequestResult.RequestFailed.getHttpRequestResult()The result of the handshake, as written back to the client (the connection is then closed).Simulator.performHttpRequest(@NonNull Request request) Given a request that would normally be handled by your standardHttpServer, process it and return response data (both logicalResponse, if present, and theMarshaledResponsebytes to be sent over the wire) as well as the matching Resource Method, if available.Method parameters in com.soklet with type arguments of type HttpRequestResultModifier and TypeMethodDescriptionvoidHttpServer.RequestHandler.handleRequest(@NonNull Request request, @NonNull Consumer<HttpRequestResult> requestResultConsumer) Callback to be invoked by aHttpServerimplementation after it has received an HTTP request but prior to writing an HTTP response.voidMcpServer.RequestHandler.handleRequest(@NonNull Request request, @NonNull Consumer<HttpRequestResult> requestResultConsumer) Handles an MCP transport request.voidSseServer.RequestHandler.handleRequest(@NonNull Request request, @NonNull Consumer<HttpRequestResult> requestResultConsumer) Callback to be invoked by aSseServerimplementation after it has received a Server-Sent Event Source HTTP request but prior to writing initial data to the HTTP response.