Skip to content

Commit a6bc8d7

Browse files
committed
Remove trailing spaces
1 parent 23cefe8 commit a6bc8d7

File tree

2,758 files changed

+61964
-61964
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,758 files changed

+61964
-61964
lines changed

doc/v600/Trailer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<center>
2-
[ROOT page](http://root.cern.ch) - [Class index](http://root.cern.ch/root/htmldoc/ClassIndex.html) -
2+
[ROOT page](http://root.cern.ch) - [Class index](http://root.cern.ch/root/htmldoc/ClassIndex.html) -
33
[Top of the page](#TopOfPage)
44
</center>

documentation/HttpServer/HttpServer.md

+29-29
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# HTTP server in ROOT
22

3-
Idea of such server – provide direct access to the different data
4-
from running ROOT application. Any object can be streamed at the moment
5-
when request is coming and delivered to the browser.
6-
Main benefit of such approach – one do not need to create any temporary ROOT files for such task.
3+
Idea of such server – provide direct access to the different data
4+
from running ROOT application. Any object can be streamed at the moment
5+
when request is coming and delivered to the browser.
6+
Main benefit of such approach – one do not need to create any temporary ROOT files for such task.
77

88
## Starting HTTP server
99

1010
To start http server, at any time create instance
11-
of the **`THttpServer`** class like:
11+
of the **`THttpServer`** class like:
1212

1313
``` {.cpp}
1414
serv = new THttpServer("http:8080");
@@ -17,9 +17,9 @@ serv = new THttpServer("http:8080");
1717
This will starts civetweb-based http server with http port 8080.
1818
Than one should be able to open address "http://localhost:8080"
1919
in any modern browser (IE, Firefox, Chrome, Opera) and browse objects,
20-
created in application. By default, server can access files, canvases
20+
created in application. By default, server can access files, canvases
2121
and histograms via gROOT pointer. All such objects can be displayed with
22-
JSRootIO graphics.
22+
JSRootIO graphics.
2323

2424
At any time one could register other objects with the command:
2525

@@ -31,13 +31,13 @@ serv->Register("graphs/subfolder", gr);
3131

3232
If objects content is changing in the applicaion, one could
3333
enable monitoring flag in the browser - than objects view will be regularly updated.
34-
34+
3535

3636
## Configuring user access
3737

38-
By default http server is open for anonymous access.
38+
By default http server is open for anonymous access.
3939
One could restrict access to the server only for authenticated users.
40-
First of all, one should create password file, using **htdigest** utility.
40+
First of all, one should create password file, using **htdigest** utility.
4141

4242
``` {.sh}
4343
[shell] htdigest -c .htdigest domain_name user_name
@@ -56,7 +56,7 @@ After that browser will automatically request to input name/password for domain
5656

5757
## Using FastCGI interface
5858

59-
FastCGI is a protocol for interfacing interactive programs with a web server like
59+
FastCGI is a protocol for interfacing interactive programs with a web server like
6060
Apache, lighttpd, Microsoft ISS and many others.
6161

6262
When starting THttpServer, one could specify:
@@ -79,12 +79,12 @@ Example of configuration file for lighttpd server is:
7979
)
8080
```
8181

82-
In this case, to access running ROOT application, one should open
82+
In this case, to access running ROOT application, one should open
8383
following address in the browser:
8484
http://lighttpd_hostname/remote_scripts/root.cgi/
8585

8686
In fact, FastCGI interface can run in parallel to http server.
87-
One just call:
87+
One just call:
8888

8989
``` {.cpp}
9090
serv = new THttpServer("http:8080");
@@ -96,9 +96,9 @@ One could specify debug parameter to be able adjust FastCGI configuration on the
9696
``` {.cpp}
9797
serv->CreateEngine("fastcgi:9000/none?debug=1");
9898
```
99-
100-
All user access will be ruled by web server -
101-
for the moment one cannot restrict with fastcgi engine.
99+
100+
All user access will be ruled by web server -
101+
for the moment one cannot restrict with fastcgi engine.
102102

103103

104104
## Integrate with existing applications
@@ -112,8 +112,8 @@ Central point of integration - when and how THttpServer get access to data from
112112
By default it is done during gSystem->ProcessEvents() call - THttpServer uses synchronous timer,
113113
which is activated every 100 ms. Such approach works perfectely when running macros in interactive ROOT shell.
114114

115-
If application runs in compiled code and does not contains gSystem->ProcessEvents() calls,
116-
two method are available.
115+
If application runs in compiled code and does not contains gSystem->ProcessEvents() calls,
116+
two method are available.
117117

118118
### Asynchrounous timer
119119

@@ -123,7 +123,7 @@ First method is to configure asynchronous timer for the server like:
123123
serv->SetTimer(100, kFALSE);
124124
```
125125

126-
Than timer will be activated even without gSystem->ProcessEvents() method call.
126+
Than timer will be activated even without gSystem->ProcessEvents() method call.
127127
Main advantage of such method that application code can be used as it is.
128128
Disadvantage - there is no control when communication between server and application is performed.
129129
It could happen just in-between of **`TH1::Fill()`** call and histogram object may be incomplete.
@@ -132,7 +132,7 @@ It could happen just in-between of **`TH1::Fill()`** call and histogram object m
132132
### Explicit call of THttpServer::ProcessRequests() method
133133

134134
Second method is preferable - one just insert in the application
135-
regular calls of the THttpServer::ProcessRequests() method. Like:
135+
regular calls of the THttpServer::ProcessRequests() method. Like:
136136

137137
``` {.cpp}
138138
serv->ProcessRequests();
@@ -148,10 +148,10 @@ serv->SetTimer(0, kTRUE);
148148

149149
## Data access from command shell
150150

151-
Big advantage of http protocol that it supported not only in web browsers
152-
but also in many other applications.
153-
One could directly use http requests to access
154-
ROOT objects and data members from any kind of scripts.
151+
Big advantage of http protocol that it supported not only in web browsers
152+
but also in many other applications.
153+
One could directly use http requests to access
154+
ROOT objects and data members from any kind of scripts.
155155

156156
If one starts server and register object like:
157157

@@ -185,7 +185,7 @@ One could access also class members of object like:
185185
``` {.sh}
186186
[shell] wget http://localhost:8080/Objects/subfolder/obj/fTitle/root.json
187187
```
188-
188+
189189
Result will be: "title".
190190

191191
If access to the server restricted with htdigest method,
@@ -199,10 +199,10 @@ Command will look like:
199199
Following requests can be performed:
200200
* root.bin - 20-byte header and zipped binary TBuffer content
201201
* root.json - ROOT JSON representation for object and objects members
202-
* root.xml - ROOT XML representation
203-
* root.png - PNG image
204-
* root.gif - GIF image
205-
* root.jpeg - JPEG image
202+
* root.xml - ROOT XML representation
203+
* root.png - PNG image
204+
* root.gif - GIF image
205+
* root.jpeg - JPEG image
206206

207207
For images one could specify h (height), w (width) and opt (draw) options. Like:
208208

documentation/HttpServer/title.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
% HTTP Server
1+
% HTTP Server
22
% Sergey Linev

0 commit comments

Comments
 (0)