Skip to content

Conversation

david-dick
Copy link
Contributor

Adding WebSocket scheme

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for WebSocket URI schemes (ws:// and wss://) to the URI library. WebSocket URIs are defined in RFC 6455 and enable two-way communication between clients and servers, with wss:// providing SSL-secured connections.

  • Implementation of URI::ws and URI::wss modules that inherit from URI::http and URI::https respectively
  • Addition of comprehensive test coverage for WebSocket URI functionality
  • Documentation updates to include WebSocket scheme descriptions

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
lib/URI/ws.pm Implements the ws:// URI scheme by inheriting from URI::http
lib/URI/wss.pm Implements the wss:// URI scheme by inheriting from URI::https
t/ws.t Test suite covering WebSocket URI parsing, port handling, and scheme switching
lib/URI.pm Documentation additions describing the ws:// and wss:// schemes
dist.ini Adds "WebSocket" as an accepted spelling for documentation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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 this pull request may close these issues.

1 participant