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

Support form-urlencoded content type for contnt-distribution notification #1106

Closed
Labels
module/websub Team/PCM Protocol connector packages related issues Type/Improvement Verson/SwanLakeDump All issues planned for Swan Lake GA release

Comments

@ayeshLK
Copy link
Member

ayeshLK commented Mar 15, 2021

  • websub:SubscriberService should be able to accept application/x-www-form-urlencoded for content distribution notification.
  • For any content-distribution notification with content-type application/x-www-form-urlencoded should be reflected as map<string> data type in websub:ContentDistributionMessage.
public type ContentDistributionMessage record {
    map<string|string[]>? headers = ();
    string? contentType = ();
    map<string[]>|json|xml|string|byte[] content;
};
@ayeshLK
Copy link
Member Author

ayeshLK commented Apr 1, 2021

  • websub:ContentDistributionMessage should be updated as follows to support x-form-urlencoded content.
public type ContentDistributionMessage record {
    map<string|string[]>? headers = ();
    string? contentType = ();
    map<string|string[]>|json|xml|string|byte[] content;
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/websub Team/PCM Protocol connector packages related issues Type/Improvement Verson/SwanLakeDump All issues planned for Swan Lake GA release
Projects
None yet
3 participants