Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MockWebServer: Create Vert.x implementation bridge classes #6452

Closed
manusa opened this issue Oct 15, 2024 · 0 comments · Fixed by #6460
Closed

MockWebServer: Create Vert.x implementation bridge classes #6452

manusa opened this issue Oct 15, 2024 · 0 comments · Fixed by #6460
Assignees
Milestone

Comments

@manusa
Copy link
Member

manusa commented Oct 15, 2024

Description

Part of #5719

To be able to replace the MockWebServer implementation based on OkHttp to Vert.x, we need to provide a set of Vert.x based classes provide or bridge the required OkHttp functionality.

These classes should be added to the io.fabric8.mockwebserver.vertx package.

The following list contains the classes to implement:

  • Protocol: equivalent to okhttp.Protocol enum containing the available HTTP protocols.
    Contains mapping to the io.vertx.core.http.HttpVersion
  • HttpServerRequestHandler: Vert.x HTTP Handler implementation.
    Handles the HTTP requests received by the MockWebServer.
    Computes a MockResponse and builds the appropriate Vert.x response.
    In case the MockResponse is a WebSocket, it takes care of upgrading the connection.
  • ServerWebSocketHandler: takes care of the upgraded HTTP connections that are converted to WebSocket.
    Bridges the calls to/from the Vert.x WebSocket from/to the MockWebServer WebSocketListener from the server side.
  • VertxMockWebSocket: MockWebServer WebSocket implementation.
    Bridges the calls to/from the Vert.x WebSocket from/to the MockWebServer WebSocketListener from the client side.
@manusa manusa changed the title MockWebServer: Create Vert.x support classes (WIP) MockWebServer: Create Vert.x implementation classes (WIP) Oct 15, 2024
@manusa manusa changed the title MockWebServer: Create Vert.x implementation classes (WIP) MockWebServer: Create Vert.x implementation bridge classes Oct 17, 2024
@manusa manusa self-assigned this Oct 17, 2024
@manusa manusa added this to the 7.0.0 milestone Oct 17, 2024 — with automated-tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant