-
Notifications
You must be signed in to change notification settings - Fork 8
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
Better example how to use cookies in HTTP #5
Comments
If I understand correctly, you are proposing to add some tutorial on the use of the HTTP protocol. Let me know if you need more information on how to integrate the page into the website repo. [1] http://docs.jolie-lang.org/#!documentation/architectural_composition/java_services.html |
@thesave We could /docs/documentation/web_applications into web_applications something like working with cookies |
@bmaschio : great idea, please go ahead! How about "Using Cookies" as page title under Web Applications? |
@fmontesi I have added a bit more of documentation still not managing to make work http cookies in outputPort. Please check the right terms have been used not sure about "architecture" |
Sorry, I am a little lost in here.
means. Can you make a brief example of what that declaration means? |
http://arxiv.org/pdf/1410.3712v2.pdf It's a work in progress (I'm adding REST), but p.16 has an example about On Thu, Jul 30, 2015 at 8:36 AM, thesave [email protected] wrote:
|
@thesave this come from the exmple I am going to upload type Op1Request: void {
.cookie1:string
}
type Op1Response: string
type Op2Request: void {
.cookie1:string
.cookie2:string
}
type Op2Response: string
interface ExampleInterface {
RequestResponse:
op1(Op1Request)(Op1Response),
op2 (Op2Request)(Op2Response),
}
interface HTTPInterface {
RequestResponse:
default(DefaultOperationHttpRequest)(undefined)
}
inputPort HTTPInput {
Protocol: http {
.keepAlive = 0; // Do not keep connections open
.debug = DebugHttp;
.debug.showContent = DebugHttpContent;
.format -> format;
.contentType -> mime;
.osc.op1.cookies.cookie1 = "cookie1";
.osc.op2.cookies.cookie1 = "cookie1";
.osc.op2.cookies.cookie2 = "cookie2";
.default = "default"
}``` |
Ok, let me recap what I understand from the two examples. In the case of inputPorts, with For outputPorts I guess it should be the reverse: if I send a message with Provided I got it right (:P) and returning to @fmontesi's question: does in this context "branch name" mean the branching behaviour on an operation op1, op2, op3 like in input-choices[1]? [1] http://docs.jolie-lang.org/#!documentation/basics/composing_statements.html#input-choice |
Any progress here? |
@fmontesi
I think we should improve the documentation on the HTTP protocol. I did struggle myself to get it working If you are able to tell were to add the further documentation i would put an example of use in a InputPort and use in outputPort,
Tnks Balint
The text was updated successfully, but these errors were encountered: