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

Example use of SwiftNIO ChannelHandlers #750

Open
bensyverson opened this issue Jan 10, 2024 · 1 comment
Open

Example use of SwiftNIO ChannelHandlers #750

bensyverson opened this issue Jan 10, 2024 · 1 comment

Comments

@bensyverson
Copy link

Expected behavior

This is an exciting library! It would be fantastic to have a slightly more elaborate code sample for the SwiftNIO ChannelHandlers, which I assume would be the most common API for users of swift-nio-imap.

Currently, the README includes a short login example using IMAPClientHandler, but it's not clear from the code how you'd handle an incorrect login for example. Being new to SwiftNIO, I'm not even sure where the response ends up. It would be great to have a slightly more elaborate example with a call and response for both Client and Server, to demonstrate the basic usage. Perhaps these are outside the scope of a README, and could end up in /examples.

@FelixSubject211
Copy link

Do you know how I can handle the login Response?

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

No branches or pull requests

2 participants