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 block wise transfer options #56

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

besedad
Copy link
Collaborator

@besedad besedad commented Oct 3, 2019

This PR adds helper methods to check/get/set Block1 and Block2 options as defined in RFC 7959[0].

[0] https://tools.ietf.org/html/rfc7959

This is the second PR. I have closed the previous one due to errors in IsBlock1 IsBlock2 methods. This PR contains the fixed code and adds a new test that tests for the error.

This commit adds the following methods:

* IsBlock2
* Block2
* SetBlock2
This commit adds the following methods:

* IsBlock1
* Block1
* SetBlock1

This commit also adds a pair of new status codes:

* Continue
* RequestEntityIncomplete
The test validates encoding of Block1 and Block2 values for range of
available szx.
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