We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using Zinc-REST package i tried to create a empty response like this:
ZnJSONRestCall#empyResponse
entity := ZnEntity with: String new type: ZnMimeType applicationJson. ^ response := ZnResponse ok: entity
The code using it is similar to ZnExampleStorageObjectRestCall#put method.
So on a test i've this collaborations
... client addPathSegment: '1'; contents: data; put. self assert: client isSuccess. self assert: client entity isEmpty. self assert: client response contentLength equals: 0.
But client entity isEmpty fails because entity is nil instead of a empty entity.
Is this the expeted behavior?
The text was updated successfully, but these errors were encountered:
That is an optimalization: when the response is of 0 length no ZnEntity object is created. There is also #hasEntity
Sorry, something went wrong.
Merge pull request #13 from svenvc/master
1a89da3
Update to latest upstream Zinc
No branches or pull requests
Using Zinc-REST package i tried to create a empty response like this:
ZnJSONRestCall#empyResponse
The code using it is similar to ZnExampleStorageObjectRestCall#put method.
So on a test i've this collaborations
But client entity isEmpty fails because entity is nil instead of a empty entity.
Is this the expeted behavior?
The text was updated successfully, but these errors were encountered: