-
Notifications
You must be signed in to change notification settings - Fork 79
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
Add Styx API Overview page to the developer docs. #171
Conversation
|
||
* Styx API: https://mvnrepository.com/artifact/com.hotels.styx/styx-api | ||
* Styx API Test Support: https://mvnrepository.com/artifact/com.hotels.styx/styx-api-testsupport | ||
* Styx Server: https://mvnrepository.com/artifact/com.hotels.styx/styx-server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we include styx-test-api?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Lets do that as a separate increment.
docs/developer-guide/api-overview.md
Outdated
Note that the HTTP content streams represents live network traffic streaming | ||
through Styx core. The content stream is not memoized nor stored. | ||
When the content is gone, it is gone for good. | ||
Therefore a `HttpRequest` (`HttpResponse`) can be aggreaged to a full |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aggregated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
docs/developer-guide/api-overview.md
Outdated
aggregated asynchronously. Obviously because the rest of the content | ||
stream are yet to be received from the network. | ||
|
||
* The `maxContentBytes` is the maximum sets the upper limit for the message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you revise the he 'is the maximum / sets the upper limit ' part?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
docs/developer-guide/api-overview.md
Outdated
public HttpRequest toStreamingRequest() | ||
``` | ||
|
||
As the method sinature reveals a `HttpResponse` is available immediately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
signature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
docs/developer-guide/api-overview.md
Outdated
``` | ||
|
||
As the method sinature reveals a `HttpResponse` is available immediately. | ||
Also because the content is permanently stored in full, you can clone a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe someone can review this. Since instead of because?
docs/developer-guide/api-overview.md
Outdated
|
||
### Http Interceptor Interface | ||
|
||
A HTTP interceptor is an object transforms, responds, or runs side-effecting actions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
object that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
docs/developer-guide/api-overview.md
Outdated
|
||
The chain also contains a request context which can be obtained with a | ||
call to `chain.context()`. It is a set of key-value properties associated | ||
with the request. Plugins may store some information in the context. So does |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review the "So does styx core..." bit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
docs/developer-guide/api-overview.md
Outdated
facilitates asynchronous event handling, modelled after Rx | ||
[observables](http://reactivex.io/documentation/observable.html). | ||
|
||
However `rx.Observable` is very generic reactive stream abstraction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is a very
No description provided.