-
Notifications
You must be signed in to change notification settings - Fork 5
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
Article posting #28
Comments
I've elected to model
Fundamentally article transfer looks like two command/response exchanges, so I chose to model it that way. Alternatives Considered
I am still chewing on the UX. I will definitely introduce a method in the Users may want:
|
POST is stateful and if you squint it looks like two commands rather than one so we model it as two commands: InitiatePost and Post. See #28 for more info on the implementation. * The postit example demonstrates how we can generate messages from a JSON payload (or really anything that supports serde).
Hello @sgg so post is working? I am about to start a TUI usenet client and thinking in using this libraries... |
Add the ability to post articles. Now would probably be a good time to introduce some integration tests!
POST
is particularly tricky because (likeIHAVE
) it is a two stage command. If we model this incorrectly we could end up with an inconsistent stream state. The workflow is as follows:POST
NntpClient
so that users do not have to deal with the stateful nature themselvesThe text was updated successfully, but these errors were encountered: