|
@@ -44,8 +44,7 @@ ZnockBase >> doesNotUnderstand: aMessage [
|
|
|
self request.
|
|
|
^ aMessage sendTo: builtClient ].
|
|
|
(self responseCreationSelectors includes: aMessage selector) ifTrue: [
|
|
|
- self response ifNotNil: [ self error: 'Response already created' ].
|
|
|
- ^ builtClient response: (aMessage sendTo: ZnResponse) ].
|
|
|
+ ^ self response: (aMessage sendTo: ZnResponse) ].
|
|
|
(self responseSelectors includes: aMessage selector) ifTrue: [
|
|
|
self response.
|
|
|
^ aMessage sendTo: builtClient response ].
|
|
@@ -88,6 +87,12 @@ ZnockBase >> response [
|
|
|
^ builtClient response
|
|
|
]
|
|
|
|
|
|
+{ #category : #building }
|
|
|
+ZnockBase >> response: response [
|
|
|
+ self response ifNotNil: [ self error: 'Response already created' ].
|
|
|
+ builtClient response: response
|
|
|
+]
|
|
|
+
|
|
|
{ #category : #building }
|
|
|
ZnockBase >> responseCreationSelectors [
|
|
|
^ #(accepted noContent notModified ok: redirect: redirect:entity: serverError: serverErrorWithEntity: statusCode: statusLine: unauthorized unauthorized: unauthorized:entity:)
|