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

Add Styx API Overview page to the developer docs. #171

Merged
merged 5 commits into from
May 25, 2018

Conversation

mikkokar
Copy link
Contributor

No description provided.

@dvlato dvlato self-requested a review May 23, 2018 13:57

* 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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aggregated

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

public HttpRequest toStreamingRequest()
```

As the method sinature reveals a `HttpResponse` is available immediately.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

signature.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

```

As the method sinature reveals a `HttpResponse` is available immediately.
Also because the content is permanently stored in full, you can clone a
Copy link
Contributor

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?


### Http Interceptor Interface

A HTTP interceptor is an object transforms, responds, or runs side-effecting actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

object that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

facilitates asynchronous event handling, modelled after Rx
[observables](http://reactivex.io/documentation/observable.html).

However `rx.Observable` is very generic reactive stream abstraction.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is a very

@mikkokar mikkokar merged commit 7787ae3 into ExpediaGroup:styx-1.0-dev May 25, 2018
@mikkokar mikkokar deleted the update-devdocs branch June 27, 2018 07:44
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.

2 participants