-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Server Engine 2 #1171
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
Server Engine 2 #1171
Conversation
# Conflicts: # binder.go # binder_test.go # http.go # params.go # results.go # revel.go # template.go # validation.go
controller.go
Outdated
@@ -24,7 +24,7 @@ type Controller struct { | |||
Type *ControllerType // A description of the controller type. | |||
MethodName string // The method name, e.g. "Index" | |||
MethodType *MethodType // A description of the invoked action type. | |||
AppController interface{} // The controller that was instantiated. | |||
AppController interface{} // The controller that was instantiated. extends from revel.Controller |
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.
extends to embeds
compress.go
Outdated
return | ||
} | ||
|
||
// This class will not send content out until the Released is called, from that point on it will act normally |
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.
wording. This class
to BufferedServerHeader
per godoc conventions and also, it's a struct
not a class
http.go
Outdated
"sort" | ||
"strconv" | ||
"strings" | ||
|
||
"golang.org/x/net/websocket" | ||
"mime/multipart" | ||
"path/filepath" | ||
) | ||
|
||
// Request Revel's HTTP request object structure |
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.
Request is
http.go
Outdated
"path/filepath" | ||
) | ||
|
||
// Request Revel's HTTP request object structure | ||
type Request struct { | ||
*http.Request | ||
In ServerRequest | ||
Header *RevelHeader |
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.
ServerHeader
?
http.go
Outdated
ContentType string | ||
Format string // "html", "xml", "json", or "txt" | ||
AcceptLanguages AcceptLanguages | ||
Locale string | ||
Websocket *websocket.Conn | ||
Websocket ServerWebSocket |
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.
WebSocket
ENGINE_RESPONSE | ||
) | ||
const ( | ||
/* HTTP Engine Type Values Starts at 1000 */ |
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.
why 1000?
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.
That gives room for the Minimum Engine constants listed before this block
@@ -0,0 +1,416 @@ | |||
package revel |
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.
serveradaptergo.go
?
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.
there is already a file called template_agapter_go.go
so this is consistent with that
simplestack.go
Outdated
|
||
ss.Current = current | ||
|
||
//nc := *current |
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.
cleanup?
testing/testsuite_test.go
Outdated
Addr: ":9001", | ||
} | ||
if revel.CurrentEngine == nil { | ||
revel.InitServerEngine(9001, revel.GO_NATIVE_SERVER_ENGINE) |
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.
why 9001?
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.
That is what it was set to before
watcher.go
Outdated
@@ -56,6 +56,7 @@ func (w *Watcher) Listen(listener Listener, roots ...string) { | |||
// Otherwise multiple change events only come out one at a time, across | |||
// multiple page views. (There appears no way to "pump" the events out of | |||
// the watcher) | |||
// This causes a notification when you do a check in GOLang, since you are modifying a buffer in use |
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.
wording and golang
?
Note the build will fail because revel/cmd needs the changes merged as well |
compress.go
Outdated
compressionType: compressType, | ||
headersWritten: false, | ||
closeNotify: make(chan bool, 1), | ||
closed: false} |
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.
add ,
and put }
on new line?
# Conflicts: # controller.go # fakeapp_test.go # revel.go # router.go # server.go
…nstead of by key, this allows for a headers case insensitive fetch
ae7f23b
to
e64e747
Compare
@notzippy How from |
In the Go server engine the
|
Minimum changes for server engine to work