Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changes between Version 3 and Version 4 of HttpServerExample

Show
Ignore:
Author:
Jordi Sayol (IP: 188.119.210.222)
Timestamp:
04/20/12 15:24:51 (6 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HttpServerExample

    v3 v4  
    2828bool  
    2929sendFile(in char[] name, OutputStream dst){ 
    30   char[] fullName = DOCROOT ~ name; 
    31   char[] mtype; 
     30  const(char)[] fullName = DOCROOT ~ name; 
     31  string mtype; 
    3232  // Check if file exists 
    3333  auto p = tango.io.Path.parse(fullName); 
    6868  } 
    6969   
    70   int fsize = fileSize(fullName); 
     70  ulong fsize = fileSize(fullName); 
    7171  auto layout = new Layout!(char); 
    7272