1
0

HttpServer_OpenSim.xml 270 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456
  1. <?xml version="1.0"?>
  2. <doc>
  3. <assembly>
  4. <name>HttpServer_OpenSim</name>
  5. </assembly>
  6. <members>
  7. <member name="T:HttpServer.IComponentProvider">
  8. <summary>
  9. Inversion of control interface.
  10. </summary>
  11. </member>
  12. <member name="M:HttpServer.IComponentProvider.AddInstance``1(System.Object)">
  13. <summary>
  14. Add a component instance
  15. </summary>
  16. <typeparam name="T">Interface type</typeparam>
  17. <param name="instance">Instance to add</param>
  18. </member>
  19. <member name="M:HttpServer.IComponentProvider.Get``1">
  20. <summary>
  21. Get a component.
  22. </summary>
  23. <typeparam name="T">Interface type</typeparam>
  24. <returns>Component if registered, otherwise null.</returns>
  25. <remarks>
  26. Component will get created if needed.
  27. </remarks>
  28. </member>
  29. <member name="M:HttpServer.IComponentProvider.Contains(System.Type)">
  30. <summary>
  31. Checks if the specified component interface have been added.
  32. </summary>
  33. <param name="interfaceType"></param>
  34. <returns>true if found; otherwise false.</returns>
  35. </member>
  36. <member name="M:HttpServer.IComponentProvider.Add``2">
  37. <summary>
  38. Add a component.
  39. </summary>
  40. <typeparam name="InterfaceType">Type being requested.</typeparam>
  41. <typeparam name="InstanceType">Type being created.</typeparam>
  42. </member>
  43. <member name="T:HttpServer.HttpModules.HttpModule">
  44. <summary>
  45. A HttpModule can be used to serve Uri's. The module itself
  46. decides if it should serve a Uri or not. In this way, you can
  47. get a very flexible http application since you can let multiple modules
  48. serve almost similar urls.
  49. </summary>
  50. <remarks>
  51. Throw <see cref="T:HttpServer.Exceptions.UnauthorizedException"/> if you are using a <see cref="T:HttpServer.Authentication.AuthenticationModule"/> and want to prompt for user name/password.
  52. </remarks>
  53. </member>
  54. <member name="M:HttpServer.HttpModules.HttpModule.Process(HttpServer.IHttpRequest,HttpServer.IHttpResponse,HttpServer.Sessions.IHttpSession)">
  55. <summary>
  56. Method that process the url
  57. </summary>
  58. <param name="request">Information sent by the browser about the request</param>
  59. <param name="response">Information that is being sent back to the client.</param>
  60. <param name="session">Session used to </param>
  61. <returns>true if this module handled the request.</returns>
  62. </member>
  63. <member name="M:HttpServer.HttpModules.HttpModule.SetLogWriter(HttpServer.ILogWriter)">
  64. <summary>
  65. Set the log writer to use.
  66. </summary>
  67. <param name="writer">logwriter to use.</param>
  68. </member>
  69. <member name="M:HttpServer.HttpModules.HttpModule.Write(HttpServer.LogPrio,System.String)">
  70. <summary>
  71. Log something.
  72. </summary>
  73. <param name="prio">importance of log message</param>
  74. <param name="message">message</param>
  75. </member>
  76. <member name="P:HttpServer.HttpModules.HttpModule.AllowSecondaryProcessing">
  77. <summary>
  78. If true specifies that the module doesn't consume the processing of a request so that subsequent modules
  79. can continue processing afterwards. Default is false.
  80. </summary>
  81. </member>
  82. <member name="T:HttpServer.Helpers.ResourceInfo">
  83. <summary>
  84. Container to bind resource names to assemblies
  85. </summary>
  86. </member>
  87. <member name="M:HttpServer.Helpers.ResourceInfo.#ctor(System.String,System.String,System.Reflection.Assembly)">
  88. <summary>
  89. Instantiates an instance of <see cref="T:HttpServer.Helpers.ResourceInfo"/>
  90. </summary>
  91. <param name="uri">The dot seperated uri the resource maps to</param>
  92. <param name="resourceName">The full resource name</param>
  93. <param name="assembly">The assembly the resource exists in</param>
  94. </member>
  95. <member name="M:HttpServer.Helpers.ResourceInfo.GetStream">
  96. <summary>
  97. Retrieves a stream to the resource
  98. </summary>
  99. <returns>Null if the resource couldn't be located somehow</returns>
  100. </member>
  101. <member name="P:HttpServer.Helpers.ResourceInfo.Assembly">
  102. <summary>
  103. Retrieves the assembly the resource resides in
  104. </summary>
  105. </member>
  106. <member name="P:HttpServer.Helpers.ResourceInfo.Uri">
  107. <summary>
  108. Retrieves the full name/path of the assembly
  109. </summary>
  110. </member>
  111. <member name="P:HttpServer.Helpers.ResourceInfo.Extension">
  112. <summary>
  113. Retrieves the extension of the resource
  114. </summary>
  115. </member>
  116. <member name="P:HttpServer.Helpers.ResourceInfo.ExtensionLessUri">
  117. <summary>Returns the Uri without extension</summary>
  118. </member>
  119. <member name="P:HttpServer.Helpers.ResourceInfo.ResourceName">
  120. <summary>Retrieves the full path name to the resource file</summary>
  121. </member>
  122. <member name="T:HttpServer.Helpers.ObjectForm">
  123. <summary>
  124. The object form class takes an object and creates form items for it.
  125. </summary>
  126. </member>
  127. <member name="M:HttpServer.Helpers.ObjectForm.#ctor(System.String,System.String,System.Object,System.String)">
  128. <summary>
  129. Initializes a new instance of the <see cref="T:HttpServer.Helpers.ObjectForm"/> class.
  130. </summary>
  131. <param name="method"></param>
  132. <param name="name">form name *and* id.</param>
  133. <param name="action">action to do when form is posted.</param>
  134. <param name="obj"></param>
  135. </member>
  136. <member name="M:HttpServer.Helpers.ObjectForm.#ctor(System.String,System.String,System.Object)">
  137. <summary>
  138. Initializes a new instance of the <see cref="T:HttpServer.Helpers.ObjectForm"/> class.
  139. </summary>
  140. <param name="name">form name *and* id.</param>
  141. <param name="action">action to do when form is posted.</param>
  142. <param name="obj">object to get values from</param>
  143. </member>
  144. <member name="M:HttpServer.Helpers.ObjectForm.#ctor(System.String,System.Object)">
  145. <summary>
  146. Initializes a new instance of the <see cref="T:HttpServer.Helpers.ObjectForm"/> class.
  147. </summary>
  148. <param name="action">form action.</param>
  149. <param name="obj">object to get values from.</param>
  150. </member>
  151. <member name="M:HttpServer.Helpers.ObjectForm.Begin">
  152. <summary>
  153. write out the FORM-tag.
  154. </summary>
  155. <returns>generated html code</returns>
  156. </member>
  157. <member name="M:HttpServer.Helpers.ObjectForm.Begin(System.Boolean)">
  158. <summary>
  159. Writeout the form tag
  160. </summary>
  161. <param name="isAjax">form should be posted through ajax.</param>
  162. <returns>generated html code</returns>
  163. </member>
  164. <member name="M:HttpServer.Helpers.ObjectForm.Tb(System.String,System.Object[])">
  165. <summary>
  166. Generates a text box.
  167. </summary>
  168. <param name="propertyName"></param>
  169. <param name="options"></param>
  170. <returns>generated html code</returns>
  171. </member>
  172. <member name="M:HttpServer.Helpers.ObjectForm.Pb(System.String,System.Object[])">
  173. <summary>
  174. password box
  175. </summary>
  176. <param name="propertyName"></param>
  177. <param name="options"></param>
  178. <returns>generated html code</returns>
  179. </member>
  180. <member name="M:HttpServer.Helpers.ObjectForm.Hidden(System.String,System.Object[])">
  181. <summary>
  182. Hiddens the specified property name.
  183. </summary>
  184. <param name="propertyName">Name of the property.</param>
  185. <param name="options">The options.</param>
  186. <returns>generated html code</returns>
  187. </member>
  188. <member name="M:HttpServer.Helpers.ObjectForm.Label(System.String,System.String)">
  189. <summary>
  190. Labels the specified property name.
  191. </summary>
  192. <param name="propertyName">property in object.</param>
  193. <param name="label">caption</param>
  194. <returns>generated html code</returns>
  195. </member>
  196. <member name="M:HttpServer.Helpers.ObjectForm.Cb(System.String,System.String,System.Object[])">
  197. <summary>
  198. Generate a checkbox
  199. </summary>
  200. <param name="propertyName">property in object</param>
  201. <param name="value">checkbox value</param>
  202. <param name="options">additional html attributes.</param>
  203. <returns>generated html code</returns>
  204. </member>
  205. <member name="M:HttpServer.Helpers.ObjectForm.Select(System.String,System.String,System.String,System.Object[])">
  206. <summary>
  207. Write a html select tag
  208. </summary>
  209. <param name="propertyName">object property.</param>
  210. <param name="idColumn">id column</param>
  211. <param name="titleColumn">The title column.</param>
  212. <param name="options">The options.</param>
  213. <returns></returns>
  214. </member>
  215. <member name="M:HttpServer.Helpers.ObjectForm.Select(System.String,System.Collections.IEnumerable,System.String,System.String,System.Object[])">
  216. <summary>
  217. Selects the specified property name.
  218. </summary>
  219. <param name="propertyName">Name of the property.</param>
  220. <param name="items">The items.</param>
  221. <param name="idColumn">The id column.</param>
  222. <param name="titleColumn">The title column.</param>
  223. <param name="options">The options.</param>
  224. <returns></returns>
  225. </member>
  226. <member name="M:HttpServer.Helpers.ObjectForm.Submit(System.String)">
  227. <summary>
  228. Write a submit tag.
  229. </summary>
  230. <param name="value">button caption</param>
  231. <returns>html submit tag</returns>
  232. </member>
  233. <member name="M:HttpServer.Helpers.ObjectForm.End">
  234. <summary>
  235. html end form tag
  236. </summary>
  237. <returns>html</returns>
  238. </member>
  239. <member name="T:HttpServer.FormDecoders.XmlDecoder">
  240. <summary>
  241. This decoder converts XML documents to form items.
  242. Each element becomes a subitem in the form, and each attribute becomes an item.
  243. </summary>
  244. <example>
  245. // xml: <hello id="1">something<world id="2">data</world></hello>
  246. // result:
  247. // form["hello"].Value = "something"
  248. // form["hello"]["id"].Value = 1
  249. // form["hello"]["world]["id"].Value = 1
  250. // form["hello"]["world"].Value = "data"
  251. </example>
  252. <remarks>
  253. The original xml document is stored in form["__xml__"].Value.
  254. </remarks>
  255. </member>
  256. <member name="T:HttpServer.FormDecoders.IFormDecoder">
  257. <summary>
  258. Interface for form content decoders.
  259. </summary>
  260. </member>
  261. <member name="M:HttpServer.FormDecoders.IFormDecoder.Decode(System.IO.Stream,System.String,System.Text.Encoding)">
  262. <summary>
  263. </summary>
  264. <param name="stream">Stream containing the content</param>
  265. <param name="contentType">Content type (with any additional info like boundry). Content type is always supplied in lower case</param>
  266. <param name="encoding">Stream enconding</param>
  267. <returns>A http form, or null if content could not be parsed.</returns>
  268. <exception cref="T:System.IO.InvalidDataException">If contents in the stream is not valid input data.</exception>
  269. </member>
  270. <member name="M:HttpServer.FormDecoders.IFormDecoder.CanParse(System.String)">
  271. <summary>
  272. Checks if the decoder can handle the mime type
  273. </summary>
  274. <param name="contentType">Content type (with any additional info like boundry). Content type is always supplied in lower case.</param>
  275. <returns>True if the decoder can parse the specified content type</returns>
  276. </member>
  277. <member name="M:HttpServer.FormDecoders.XmlDecoder.Decode(System.IO.Stream,System.String,System.Text.Encoding)">
  278. <summary>
  279. </summary>
  280. <param name="stream">Stream containing the content</param>
  281. <param name="contentType">Content type (with any additional info like boundry). Content type is always supplied in lower case</param>
  282. <param name="encoding">Stream encoding</param>
  283. Note: contentType and encoding are not used?
  284. <returns>A http form, or null if content could not be parsed.</returns>
  285. <exception cref="T:System.IO.InvalidDataException"></exception>
  286. </member>
  287. <member name="M:HttpServer.FormDecoders.XmlDecoder.TraverseNode(HttpServer.IHttpInput,System.Xml.XmlNode)">
  288. <summary>
  289. Recursive function that will go through an xml element and store it's content
  290. to the form item.
  291. </summary>
  292. <param name="item">(parent) Item in form that content should be added to.</param>
  293. <param name="node">Node that should be parsed.</param>
  294. </member>
  295. <member name="M:HttpServer.FormDecoders.XmlDecoder.CanParse(System.String)">
  296. <summary>
  297. Checks if the decoder can handle the mime type
  298. </summary>
  299. <param name="contentType">Content type (with any additional info like boundry). Content type is always supplied in lower case.</param>
  300. <returns>True if the decoder can parse the specified content type</returns>
  301. </member>
  302. <member name="T:HttpServer.Exceptions.InternalServerException">
  303. <summary>
  304. The server encountered an unexpected condition which prevented it from fulfilling the request.
  305. </summary>
  306. </member>
  307. <member name="T:HttpServer.Exceptions.HttpException">
  308. <summary>
  309. All HTTP based exceptions will derive this class.
  310. </summary>
  311. </member>
  312. <member name="M:HttpServer.Exceptions.HttpException.#ctor(System.Net.HttpStatusCode,System.String)">
  313. <summary>
  314. Create a new HttpException
  315. </summary>
  316. <param name="code">http status code (sent in the response)</param>
  317. <param name="message">error description</param>
  318. </member>
  319. <member name="M:HttpServer.Exceptions.HttpException.#ctor(System.Net.HttpStatusCode,System.String,System.Exception)">
  320. <summary>
  321. Create a new HttpException
  322. </summary>
  323. <param name="code">http status code (sent in the response)</param>
  324. <param name="message">error description</param>
  325. <param name="inner">inner exception</param>
  326. </member>
  327. <member name="P:HttpServer.Exceptions.HttpException.HttpStatusCode">
  328. <summary>
  329. status code to use in the response.
  330. </summary>
  331. </member>
  332. <member name="M:HttpServer.Exceptions.InternalServerException.#ctor">
  333. <summary>
  334. Initializes a new instance of the <see cref="T:HttpServer.Exceptions.InternalServerException"/> class.
  335. </summary>
  336. </member>
  337. <member name="M:HttpServer.Exceptions.InternalServerException.#ctor(System.String)">
  338. <summary>
  339. Initializes a new instance of the <see cref="T:HttpServer.Exceptions.InternalServerException"/> class.
  340. </summary>
  341. <param name="message">error message.</param>
  342. </member>
  343. <member name="M:HttpServer.Exceptions.InternalServerException.#ctor(System.String,System.Exception)">
  344. <summary>
  345. Initializes a new instance of the <see cref="T:HttpServer.Exceptions.InternalServerException"/> class.
  346. </summary>
  347. <param name="message">error message.</param>
  348. <param name="inner">inner exception.</param>
  349. </member>
  350. <member name="T:HttpServer.Sessions.MemorySessionStore">
  351. <summary>
  352. Session store using memory for each session.
  353. </summary>
  354. </member>
  355. <member name="T:HttpServer.Sessions.IHttpSessionStore">
  356. <summary>
  357. A session store is used to store and load sessions on a media.
  358. The default implementation (<see cref="T:HttpServer.Sessions.MemorySessionStore"/>) saves/retrieves sessions from memory.
  359. </summary>
  360. </member>
  361. <member name="M:HttpServer.Sessions.IHttpSessionStore.Create">
  362. <summary>
  363. Creates a new http session with a generated id.
  364. </summary>
  365. <returns>A <see cref="T:HttpServer.Sessions.IHttpSession"/> object</returns>
  366. </member>
  367. <member name="M:HttpServer.Sessions.IHttpSessionStore.Create(System.String)">
  368. <summary>
  369. Creates a new http session with a specific id
  370. </summary>
  371. <param name="id">Id used to identify the new cookie..</param>
  372. <returns>A <see cref="T:HttpServer.Sessions.IHttpSession"/> object.</returns>
  373. <remarks>
  374. Id should be generated by the store implementation if it's null or <see cref="F:System.String.Empty"/>.
  375. </remarks>
  376. </member>
  377. <member name="M:HttpServer.Sessions.IHttpSessionStore.Load(System.String)">
  378. <summary>
  379. Load an existing session.
  380. </summary>
  381. <param name="sessionId">Session id (usually retrieved from a client side cookie).</param>
  382. <returns>A session if found; otherwise null.</returns>
  383. </member>
  384. <member name="M:HttpServer.Sessions.IHttpSessionStore.Save(HttpServer.Sessions.IHttpSession)">
  385. <summary>
  386. Save an updated session to the store.
  387. </summary>
  388. <param name="session">Session id (usually retrieved from a client side cookie).</param>
  389. <exception cref="T:System.ArgumentException">If Id property have not been specified.</exception>
  390. </member>
  391. <member name="M:HttpServer.Sessions.IHttpSessionStore.AddUnused(HttpServer.Sessions.IHttpSession)">
  392. <summary>
  393. We use the flyweight pattern which reuses small objects
  394. instead of creating new each time.
  395. </summary>
  396. <param name="session">Unused session that should be reused next time Create is called.</param>
  397. </member>
  398. <member name="M:HttpServer.Sessions.IHttpSessionStore.Cleanup">
  399. <summary>
  400. Remove expired sessions
  401. </summary>
  402. </member>
  403. <member name="M:HttpServer.Sessions.IHttpSessionStore.Remove(System.String)">
  404. <summary>
  405. Remove a session
  406. </summary>
  407. <param name="sessionId">id of the session.</param>
  408. </member>
  409. <member name="P:HttpServer.Sessions.IHttpSessionStore.Item(System.String)">
  410. <summary>
  411. Load a session from the store
  412. </summary>
  413. <param name="sessionId"></param>
  414. <returns>null if session is not found.</returns>
  415. </member>
  416. <member name="P:HttpServer.Sessions.IHttpSessionStore.ExpireTime">
  417. <summary>
  418. Number of minutes before a session expires.
  419. </summary>
  420. <value>Default time is 20 minutes.</value>
  421. </member>
  422. <member name="M:HttpServer.Sessions.MemorySessionStore.#ctor">
  423. <summary>
  424. Initializes the class setting the expirationtimer to clean the session every minute
  425. </summary>
  426. </member>
  427. <member name="M:HttpServer.Sessions.MemorySessionStore.Cleanup(System.Object)">
  428. <summary>
  429. Delegate for the cleanup timer
  430. </summary>
  431. </member>
  432. <member name="M:HttpServer.Sessions.MemorySessionStore.Create">
  433. <summary>
  434. Creates a new http session
  435. </summary>
  436. <returns></returns>
  437. </member>
  438. <member name="M:HttpServer.Sessions.MemorySessionStore.Create(System.String)">
  439. <summary>
  440. Creates a new http session with a specific id
  441. </summary>
  442. <param name="id">Id used to identify the new cookie..</param>
  443. <returns>A <see cref="T:HttpServer.Sessions.IHttpSession"/> object.</returns>
  444. <remarks>
  445. Id should be generated by the store implementation if it's null or <see cref="F:System.String.Empty"/>.
  446. </remarks>
  447. </member>
  448. <member name="M:HttpServer.Sessions.MemorySessionStore.Load(System.String)">
  449. <summary>
  450. Load an existing session.
  451. </summary>
  452. <param name="sessionId"></param>
  453. <returns></returns>
  454. </member>
  455. <member name="M:HttpServer.Sessions.MemorySessionStore.Save(HttpServer.Sessions.IHttpSession)">
  456. <summary>
  457. Save an updated session to the store.
  458. </summary>
  459. <param name="session"></param>
  460. </member>
  461. <member name="M:HttpServer.Sessions.MemorySessionStore.AddUnused(HttpServer.Sessions.IHttpSession)">
  462. <summary>
  463. We use the flyweight pattern which reuses small objects
  464. instead of creating new each time.
  465. </summary>
  466. <param name="session">EmptyLanguageNode (unused) session that should be reused next time Create is called.</param>
  467. </member>
  468. <member name="M:HttpServer.Sessions.MemorySessionStore.Cleanup">
  469. <summary>
  470. Remove expired sessions
  471. </summary>
  472. </member>
  473. <member name="M:HttpServer.Sessions.MemorySessionStore.Remove(System.String)">
  474. <summary>
  475. Remove a session
  476. </summary>
  477. <param name="sessionId">id of the session.</param>
  478. </member>
  479. <member name="P:HttpServer.Sessions.MemorySessionStore.Item(System.String)">
  480. <summary>
  481. Load a session from the store
  482. </summary>
  483. <param name="sessionId"></param>
  484. <returns>null if session is not found.</returns>
  485. </member>
  486. <member name="P:HttpServer.Sessions.MemorySessionStore.ExpireTime">
  487. <summary>
  488. Number of minutes before a session expires.
  489. Default is 20 minutes.
  490. </summary>
  491. </member>
  492. <member name="T:HttpServer.ResponseCookies">
  493. <summary>
  494. Cookies that should be set.
  495. </summary>
  496. </member>
  497. <member name="M:HttpServer.ResponseCookies.Add(HttpServer.ResponseCookie)">
  498. <summary>
  499. Adds a cookie in the collection.
  500. </summary>
  501. <param name="cookie">cookie to add</param>
  502. <exception cref="T:System.ArgumentNullException">cookie is null</exception>
  503. </member>
  504. <member name="M:HttpServer.ResponseCookies.Add(HttpServer.RequestCookie,System.DateTime)">
  505. <summary>
  506. Copy a request cookie
  507. </summary>
  508. <param name="cookie"></param>
  509. <param name="expires">When the cookie should expire</param>
  510. </member>
  511. <member name="M:HttpServer.ResponseCookies.GetEnumerator">
  512. <summary>
  513. Gets a collection enumerator on the cookie list.
  514. </summary>
  515. <returns>collection enumerator</returns>
  516. </member>
  517. <member name="M:HttpServer.ResponseCookies.Clear">
  518. <summary>
  519. Remove all cookies
  520. </summary>
  521. </member>
  522. <member name="M:HttpServer.ResponseCookies.System#Collections#Generic#IEnumerable{HttpServer#ResponseCookie}#GetEnumerator">
  523. <summary>
  524. Returns an enumerator that iterates through the collection.
  525. </summary>
  526. <returns>
  527. A <see cref="T:System.Collections.Generic.IEnumerator`1"></see> that can be used to iterate through the collection.
  528. </returns>
  529. <filterpriority>1</filterpriority>
  530. </member>
  531. <member name="P:HttpServer.ResponseCookies.Count">
  532. <summary>
  533. Gets the count of cookies in the collection.
  534. </summary>
  535. </member>
  536. <member name="P:HttpServer.ResponseCookies.Item(System.String)">
  537. <summary>
  538. Gets the cookie of a given identifier (null if not existing).
  539. </summary>
  540. </member>
  541. <member name="T:HttpServer.Check">
  542. <summary>
  543. Small design by contract implementation.
  544. </summary>
  545. </member>
  546. <member name="M:HttpServer.Check.NotEmpty(System.String,System.String)">
  547. <summary>
  548. Check whether a parameter is empty.
  549. </summary>
  550. <param name="value">Parameter value</param>
  551. <param name="parameterOrErrorMessage">Parameter name, or error description.</param>
  552. <exception cref="T:System.ArgumentException">value is empty.</exception>
  553. </member>
  554. <member name="M:HttpServer.Check.Require(System.Object,System.String)">
  555. <summary>
  556. Checks whether a parameter is null.
  557. </summary>
  558. <param name="value">Parameter value</param>
  559. <param name="parameterOrErrorMessage">Parameter name, or error description.</param>
  560. <exception cref="T:System.ArgumentNullException">value is null.</exception>
  561. </member>
  562. <member name="M:HttpServer.Check.Min(System.Int32,System.Object,System.String)">
  563. <summary>
  564. Checks whether a parameter is null.
  565. </summary>
  566. <param name="minValue"></param>
  567. <param name="value">Parameter value</param>
  568. <param name="parameterOrErrorMessage">Parameter name, or error description.</param>
  569. <exception cref="T:System.ArgumentException">value is null.</exception>
  570. </member>
  571. <member name="T:HttpServer.Parser.HttpRequestParser">
  572. <summary>
  573. Parses a HTTP request directly from a stream
  574. </summary>
  575. </member>
  576. <member name="T:HttpServer.IHttpRequestParser">
  577. <summary>
  578. Event driven parser used to parse incoming HTTP requests.
  579. </summary>
  580. <remarks>
  581. The parser supports partial messages and keeps the states between
  582. each parsed buffer. It's therefore important that the parser gets
  583. <see cref="M:HttpServer.IHttpRequestParser.Clear"/>ed if a client disconnects.
  584. </remarks>
  585. </member>
  586. <member name="M:HttpServer.IHttpRequestParser.Parse(System.Byte[],System.Int32,System.Int32)">
  587. <summary>
  588. Parse partial or complete message.
  589. </summary>
  590. <param name="buffer">buffer containing incoming bytes</param>
  591. <param name="offset">where in buffer that parsing should start</param>
  592. <param name="count">number of bytes to parse</param>
  593. <returns>Unparsed bytes left in buffer.</returns>
  594. <exception cref="T:HttpServer.Exceptions.BadRequestException"><c>BadRequestException</c>.</exception>
  595. </member>
  596. <member name="M:HttpServer.IHttpRequestParser.Clear">
  597. <summary>
  598. Clear parser state.
  599. </summary>
  600. </member>
  601. <member name="P:HttpServer.IHttpRequestParser.CurrentState">
  602. <summary>
  603. Current state in parser.
  604. </summary>
  605. </member>
  606. <member name="E:HttpServer.IHttpRequestParser.RequestCompleted">
  607. <summary>
  608. A request have been successfully parsed.
  609. </summary>
  610. </member>
  611. <member name="E:HttpServer.IHttpRequestParser.BodyBytesReceived">
  612. <summary>
  613. More body bytes have been received.
  614. </summary>
  615. </member>
  616. <member name="E:HttpServer.IHttpRequestParser.RequestLineReceived">
  617. <summary>
  618. Request line have been received.
  619. </summary>
  620. </member>
  621. <member name="E:HttpServer.IHttpRequestParser.HeaderReceived">
  622. <summary>
  623. A header have been received.
  624. </summary>
  625. </member>
  626. <member name="P:HttpServer.IHttpRequestParser.LogWriter">
  627. <summary>
  628. Gets or sets the log writer.
  629. </summary>
  630. </member>
  631. <member name="M:HttpServer.Parser.HttpRequestParser.#ctor(HttpServer.ILogWriter)">
  632. <summary>
  633. Create a new request parser
  634. </summary>
  635. <param name="logWriter">delegate receiving log entries.</param>
  636. </member>
  637. <member name="M:HttpServer.Parser.HttpRequestParser.AddToBody(System.Byte[],System.Int32,System.Int32)">
  638. <summary>
  639. Add a number of bytes to the body
  640. </summary>
  641. <param name="buffer">buffer containing more body bytes.</param>
  642. <param name="offset">starting offset in buffer</param>
  643. <param name="count">number of bytes, from offset, to read.</param>
  644. <returns>offset to continue from.</returns>
  645. </member>
  646. <member name="M:HttpServer.Parser.HttpRequestParser.Clear">
  647. <summary>
  648. Remove all state information for the request.
  649. </summary>
  650. </member>
  651. <member name="M:HttpServer.Parser.HttpRequestParser.OnFirstLine(System.String)">
  652. <summary>
  653. Parse request line
  654. </summary>
  655. <param name="value"></param>
  656. <exception cref="T:HttpServer.Exceptions.BadRequestException">If line is incorrect</exception>
  657. <remarks>Expects the following format: "Method SP Request-URI SP HTTP-Version CRLF"</remarks>
  658. </member>
  659. <member name="M:HttpServer.Parser.HttpRequestParser.OnHeader(System.String,System.String)">
  660. <summary>
  661. We've parsed a new header.
  662. </summary>
  663. <param name="name">Name in lower case</param>
  664. <param name="value">Value, unmodified.</param>
  665. <exception cref="T:HttpServer.Exceptions.BadRequestException">If content length cannot be parsed.</exception>
  666. </member>
  667. <member name="M:HttpServer.Parser.HttpRequestParser.Parse(System.Byte[],System.Int32,System.Int32)">
  668. <summary>
  669. Parse a message
  670. </summary>
  671. <param name="buffer">bytes to parse.</param>
  672. <param name="offset">where in buffer that parsing should start</param>
  673. <param name="count">number of bytes to parse, starting on <paramref name="offset"/>.</param>
  674. <returns>offset (where to start parsing next).</returns>
  675. <exception cref="T:HttpServer.Exceptions.BadRequestException"><c>BadRequestException</c>.</exception>
  676. </member>
  677. <member name="P:HttpServer.Parser.HttpRequestParser.LogWriter">
  678. <summary>
  679. Gets or sets the log writer.
  680. </summary>
  681. </member>
  682. <member name="P:HttpServer.Parser.HttpRequestParser.CurrentState">
  683. <summary>
  684. Current state in parser.
  685. </summary>
  686. </member>
  687. <member name="E:HttpServer.Parser.HttpRequestParser.RequestCompleted">
  688. <summary>
  689. A request have been successfully parsed.
  690. </summary>
  691. </member>
  692. <member name="E:HttpServer.Parser.HttpRequestParser.BodyBytesReceived">
  693. <summary>
  694. More body bytes have been received.
  695. </summary>
  696. </member>
  697. <member name="E:HttpServer.Parser.HttpRequestParser.RequestLineReceived">
  698. <summary>
  699. Request line have been received.
  700. </summary>
  701. </member>
  702. <member name="E:HttpServer.Parser.HttpRequestParser.HeaderReceived">
  703. <summary>
  704. A header have been received.
  705. </summary>
  706. </member>
  707. <member name="T:HttpServer.HttpModules.WebSiteModule">
  708. <summary>
  709. The website module let's you handle multiple websites in the same server.
  710. It uses the "Host" header to check which site you want.
  711. </summary>
  712. <remarks>It's recommended that you do not
  713. add any other modules to HttpServer if you are using the website module. Instead,
  714. add all wanted modules to each website.</remarks>
  715. </member>
  716. <member name="M:HttpServer.HttpModules.WebSiteModule.#ctor(System.String,System.String)">
  717. <summary>
  718. </summary>
  719. <param name="host">domain name that should be handled.</param>
  720. <param name="name"></param>
  721. </member>
  722. <member name="M:HttpServer.HttpModules.WebSiteModule.Process(HttpServer.IHttpRequest,HttpServer.IHttpResponse,HttpServer.Sessions.IHttpSession)">
  723. <summary>
  724. Method that process the url
  725. </summary>
  726. <param name="request">Information sent by the browser about the request</param>
  727. <param name="response">Information that is being sent back to the client.</param>
  728. <param name="session">Session used to </param>
  729. </member>
  730. <member name="P:HttpServer.HttpModules.WebSiteModule.SiteName">
  731. <summary>
  732. Name of site.
  733. </summary>
  734. </member>
  735. <member name="T:HttpServer.HttpForm">
  736. <summary>Container for posted form data</summary>
  737. </member>
  738. <member name="T:HttpServer.HttpInput">
  739. <summary>
  740. Contains some kind of input from the browser/client.
  741. can be QueryString, form data or any other request body content.
  742. </summary>
  743. </member>
  744. <member name="T:HttpServer.IHttpInput">
  745. <summary>
  746. Base class for request data containers
  747. </summary>
  748. </member>
  749. <member name="M:HttpServer.IHttpInput.Add(System.String,System.String)">
  750. <summary>
  751. Adds a parameter mapped to the presented name
  752. </summary>
  753. <param name="name">The name to map the parameter to</param>
  754. <param name="value">The parameter value</param>
  755. </member>
  756. <member name="M:HttpServer.IHttpInput.Contains(System.String)">
  757. <summary>
  758. Returns true if the container contains the requested parameter
  759. </summary>
  760. <param name="name">Parameter id</param>
  761. <returns>True if parameter exists</returns>
  762. </member>
  763. <member name="P:HttpServer.IHttpInput.Item(System.String)">
  764. <summary>
  765. Returns a request parameter
  766. </summary>
  767. <param name="name">The name associated with the parameter</param>
  768. <returns></returns>
  769. </member>
  770. <member name="F:HttpServer.HttpInput.Empty">
  771. <summary> Representation of a non-initialized class instance </summary>
  772. </member>
  773. <member name="F:HttpServer.HttpInput._ignoreChanges">
  774. <summary> Variable telling the class that it is non-initialized <see cref="F:HttpServer.HttpInput.Empty"/> </summary>
  775. </member>
  776. <member name="M:HttpServer.HttpInput.#ctor(System.String)">
  777. <summary>
  778. Initializes a new instance of the <see cref="T:HttpServer.HttpInput"/> class.
  779. </summary>
  780. <param name="name">form name.</param>
  781. </member>
  782. <member name="M:HttpServer.HttpInput.#ctor(System.String,System.Boolean)">
  783. <summary>
  784. Initializes a new instance of the <see cref="T:HttpServer.HttpInput"/> class.
  785. </summary>
  786. <param name="name">form name.</param>
  787. <param name="ignoreChanges">if set to <c>true</c> all changes will be ignored. </param>
  788. <remarks>this constructor should only be used by Empty</remarks>
  789. </member>
  790. <member name="M:HttpServer.HttpInput.#ctor(HttpServer.HttpInput)">
  791. <summary>Creates a deep copy of the HttpInput class</summary>
  792. <param name="input">The object to copy</param>
  793. <remarks>The function makes a deep copy of quite a lot which can be slow</remarks>
  794. </member>
  795. <member name="M:HttpServer.HttpInput.Add(System.String,System.String)">
  796. <summary>
  797. Add a new element. Form array elements are parsed
  798. and added in a correct hierarchy.
  799. </summary>
  800. <param name="name">Name is converted to lower case.</param>
  801. <param name="value"></param>
  802. <exception cref="T:System.ArgumentNullException"><c>name</c> is null.</exception>
  803. <exception cref="T:System.InvalidOperationException">Cannot add stuff to <see cref="F:HttpServer.HttpInput.Empty"/>.</exception>
  804. </member>
  805. <member name="M:HttpServer.HttpInput.Contains(System.String)">
  806. <summary>
  807. Returns true if the class contains a <see cref="T:HttpServer.HttpInput"/> with the corresponding name.
  808. </summary>
  809. <param name="name">The field/query string name</param>
  810. <returns>True if the value exists</returns>
  811. </member>
  812. <member name="M:HttpServer.HttpInput.ParseItem(System.String,System.String)">
  813. <summary>
  814. Parses an item and returns it.
  815. This function is primarily used to parse array items as in user[name].
  816. </summary>
  817. <param name="name"></param>
  818. <param name="value"></param>
  819. <returns></returns>
  820. </member>
  821. <member name="M:HttpServer.HttpInput.ToString">
  822. <summary> Outputs the instance representing all its values joined together </summary>
  823. <returns></returns>
  824. </member>
  825. <member name="M:HttpServer.HttpInput.ToString(System.Boolean)">
  826. <summary>Returns all items as an unescaped query string.</summary>
  827. <returns></returns>
  828. </member>
  829. <member name="M:HttpServer.HttpInput.ExtractOne(System.String)">
  830. <summary>
  831. Extracts one parameter from an array
  832. </summary>
  833. <param name="value">Containing the string array</param>
  834. <returns>All but the first value</returns>
  835. <example>
  836. string test1 = ExtractOne("system[user][extension][id]");
  837. string test2 = ExtractOne(test1);
  838. string test3 = ExtractOne(test2);
  839. // test1 = user[extension][id]
  840. // test2 = extension[id]
  841. // test3 = id
  842. </example>
  843. </member>
  844. <member name="M:HttpServer.HttpInput.Clear">
  845. <summary>Resets all data contained by class</summary>
  846. </member>
  847. <member name="M:HttpServer.HttpInput.System#Collections#Generic#IEnumerable{HttpServer#HttpInputItem}#GetEnumerator">
  848. <summary>
  849. Returns an enumerator that iterates through the collection.
  850. </summary>
  851. <returns>
  852. A <see cref="T:System.Collections.Generic.IEnumerator`1"></see> that can be used to iterate through the collection.
  853. </returns>
  854. <filterpriority>1</filterpriority>
  855. </member>
  856. <member name="M:HttpServer.HttpInput.GetEnumerator">
  857. <summary>
  858. Returns an enumerator that iterates through a collection.
  859. </summary>
  860. <returns>
  861. An <see cref="T:System.Collections.IEnumerator"></see> object that can be used to iterate through the collection.
  862. </returns>
  863. <filterpriority>2</filterpriority>
  864. </member>
  865. <member name="P:HttpServer.HttpInput.Name">
  866. <summary>
  867. Form name as lower case
  868. </summary>
  869. </member>
  870. <member name="P:HttpServer.HttpInput.Item(System.String)">
  871. <summary>
  872. Get a form item.
  873. </summary>
  874. <param name="name"></param>
  875. <returns>Returns <see cref="F:HttpServer.HttpInputItem.Empty"/> if item was not found.</returns>
  876. </member>
  877. <member name="F:HttpServer.HttpForm.EmptyForm">
  878. <summary>Instance to help mark a non-initialized form</summary>
  879. </member>
  880. <member name="M:HttpServer.HttpForm.#ctor">
  881. <summary>Initializes a form container with the specified name</summary>
  882. </member>
  883. <member name="M:HttpServer.HttpForm.#ctor(HttpServer.HttpInput)">
  884. <summary>
  885. Makes a deep copy of the input
  886. </summary>
  887. <param name="input">The input to copy</param>
  888. </member>
  889. <member name="M:HttpServer.HttpForm.AddFile(HttpServer.HttpFile)">
  890. <summary>
  891. Adds a file to the collection of posted files
  892. </summary>
  893. <param name="file">The file to add</param>
  894. <exception cref="T:System.ArgumentException">If the file is already added</exception>
  895. <exception cref="T:System.ArgumentNullException">If file is null</exception>
  896. <exception cref="T:System.InvalidOperationException">If the instance is HttpForm.EmptyForm which cannot be modified</exception>
  897. </member>
  898. <member name="M:HttpServer.HttpForm.ContainsFile(System.String)">
  899. <summary>
  900. Checks if the form contains a specified file
  901. </summary>
  902. <param name="name">Field name of the file parameter</param>
  903. <returns>True if the file exists</returns>
  904. <exception cref="T:System.InvalidOperationException">If the instance is HttpForm.EmptyForm which cannot be modified</exception>
  905. </member>
  906. <member name="M:HttpServer.HttpForm.GetFile(System.String)">
  907. <summary>
  908. Retrieves a file held by by the form
  909. </summary>
  910. <param name="name">The identifier of the file</param>
  911. <returns>The requested file or null if the file was not found</returns>
  912. <exception cref="T:System.ArgumentNullException">If name is null or empty</exception>
  913. <exception cref="T:System.InvalidOperationException">If the instance is HttpForm.EmptyForm which cannot be modified</exception>
  914. </member>
  915. <member name="M:HttpServer.HttpForm.Clear">
  916. <summary>Disposes all held HttpFile's and resets values</summary>
  917. </member>
  918. <member name="P:HttpServer.HttpForm.Files">
  919. <summary>
  920. Retrieves the number of files added to the <see cref="T:HttpServer.HttpForm"/>
  921. </summary>
  922. <returns>0 if no files are added</returns>
  923. </member>
  924. <member name="T:HttpServer.Exceptions.BadRequestException">
  925. <summary>
  926. The request could not be understood by the server due to malformed syntax.
  927. The client SHOULD NOT repeat the request without modifications.
  928. Text taken from: http://www.submissionchamber.com/help-guides/error-codes.php
  929. </summary>
  930. </member>
  931. <member name="M:HttpServer.Exceptions.BadRequestException.#ctor(System.String)">
  932. <summary>
  933. Create a new bad request exception.
  934. </summary>
  935. <param name="errMsg">reason to why the request was bad.</param>
  936. </member>
  937. <member name="M:HttpServer.Exceptions.BadRequestException.#ctor(System.String,System.Exception)">
  938. <summary>
  939. Create a new bad request exception.
  940. </summary>
  941. <param name="errMsg">reason to why the request was bad.</param>
  942. <param name="inner">inner exception</param>
  943. </member>
  944. <member name="T:HttpServer.Sessions.MemorySession">
  945. <summary>
  946. A session stored in memory.
  947. </summary>
  948. </member>
  949. <member name="T:HttpServer.Sessions.IHttpSession">
  950. <summary>
  951. Interface for sessions
  952. </summary>
  953. </member>
  954. <member name="M:HttpServer.Sessions.IHttpSession.Clear">
  955. <summary>
  956. Remove everything from the session
  957. </summary>
  958. </member>
  959. <member name="M:HttpServer.Sessions.IHttpSession.Clear(System.Boolean)">
  960. <summary>
  961. Remove everything from the session
  962. </summary>
  963. <param name="expires">True if the session is cleared due to expiration</param>
  964. </member>
  965. <member name="P:HttpServer.Sessions.IHttpSession.Id">
  966. <summary>
  967. Session id
  968. </summary>
  969. </member>
  970. <member name="P:HttpServer.Sessions.IHttpSession.Item(System.String)">
  971. <summary>
  972. Should
  973. </summary>
  974. <param name="name">Name of the session variable</param>
  975. <returns>null if it's not set</returns>
  976. <exception cref="T:System.Runtime.Serialization.SerializationException">If the object cant be serialized.</exception>
  977. </member>
  978. <member name="P:HttpServer.Sessions.IHttpSession.Accessed">
  979. <summary>
  980. When the session was last accessed.
  981. This property is touched by the http server each time the
  982. session is requested.
  983. </summary>
  984. </member>
  985. <member name="P:HttpServer.Sessions.IHttpSession.Count">
  986. <summary>
  987. Number of session variables.
  988. </summary>
  989. </member>
  990. <member name="E:HttpServer.Sessions.IHttpSession.BeforeClear">
  991. <summary>
  992. Event triggered upon clearing the session
  993. </summary>
  994. </member>
  995. <member name="M:HttpServer.Sessions.MemorySession.#ctor(System.String)">
  996. <summary>
  997. </summary>
  998. <param name="id">A unique id used by the sessions store to identify the session</param>
  999. </member>
  1000. <member name="M:HttpServer.Sessions.MemorySession.SetId(System.String)">
  1001. <summary>
  1002. Id
  1003. </summary>
  1004. <param name="id"></param>
  1005. </member>
  1006. <member name="M:HttpServer.Sessions.MemorySession.Clear">
  1007. <summary>
  1008. Remove everything from the session
  1009. </summary>
  1010. </member>
  1011. <member name="M:HttpServer.Sessions.MemorySession.Clear(System.Boolean)">
  1012. <summary>
  1013. Clears the specified expire.
  1014. </summary>
  1015. <param name="expires">True if the session is cleared due to expiration</param>
  1016. </member>
  1017. <member name="M:HttpServer.Sessions.MemorySession.Dispose">
  1018. <summary>
  1019. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
  1020. </summary>
  1021. <filterpriority>2</filterpriority>
  1022. </member>
  1023. <member name="P:HttpServer.Sessions.MemorySession.Id">
  1024. <summary>
  1025. Session id
  1026. </summary>
  1027. </member>
  1028. <member name="P:HttpServer.Sessions.MemorySession.Item(System.String)">
  1029. <summary>
  1030. Should
  1031. </summary>
  1032. <param name="name">Name of the session variable</param>
  1033. <returns>null if it's not set</returns>
  1034. </member>
  1035. <member name="P:HttpServer.Sessions.MemorySession.Accessed">
  1036. <summary>
  1037. when the session was last accessed.
  1038. </summary>
  1039. <remarks>
  1040. Used to determine when the session should be removed.
  1041. </remarks>
  1042. </member>
  1043. <member name="P:HttpServer.Sessions.MemorySession.Count">
  1044. <summary>
  1045. Number of values in the session
  1046. </summary>
  1047. </member>
  1048. <member name="P:HttpServer.Sessions.MemorySession.Changed">
  1049. <summary>
  1050. Flag to indicate that the session have been changed
  1051. and should be saved into the session store.
  1052. </summary>
  1053. </member>
  1054. <member name="E:HttpServer.Sessions.MemorySession.BeforeClear">
  1055. <summary>
  1056. Event triggered upon clearing the session
  1057. </summary>
  1058. </member>
  1059. <member name="T:HttpServer.Rules.RedirectRule">
  1060. <summary>
  1061. redirects from one URL to another.
  1062. </summary>
  1063. </member>
  1064. <member name="T:HttpServer.Rules.IRule">
  1065. <summary>
  1066. Rules are used to perform operations before a request is being handled.
  1067. Rules can be used to create routing etc.
  1068. </summary>
  1069. </member>
  1070. <member name="M:HttpServer.Rules.IRule.Process(HttpServer.IHttpRequest,HttpServer.IHttpResponse)">
  1071. <summary>
  1072. Process the incoming request.
  1073. </summary>
  1074. <param name="request">incoming HTTP request</param>
  1075. <param name="response">outgoing HTTP response</param>
  1076. <returns>true if response should be sent to the browser directly (no other rules or modules will be processed).</returns>
  1077. <remarks>
  1078. returning true means that no modules will get the request. Returning true is typically being done
  1079. for redirects.
  1080. </remarks>
  1081. <exception cref="T:System.ArgumentNullException">If request or response is null.</exception>
  1082. </member>
  1083. <member name="M:HttpServer.Rules.RedirectRule.#ctor(System.String,System.String)">
  1084. <summary>
  1085. Initializes a new instance of the <see cref="T:HttpServer.Rules.RedirectRule"/> class.
  1086. </summary>
  1087. <param name="fromUrl">Absolute path (no server name)</param>
  1088. <param name="toUrl">Absolute path (no server name)</param>
  1089. <example>
  1090. server.Add(new RedirectRule("/", "/user/index"));
  1091. </example>
  1092. </member>
  1093. <member name="M:HttpServer.Rules.RedirectRule.#ctor(System.String,System.String,System.Boolean)">
  1094. <summary>
  1095. Initializes a new instance of the <see cref="T:HttpServer.Rules.RedirectRule"/> class.
  1096. </summary>
  1097. <param name="fromUrl">Absolute path (no server name)</param>
  1098. <param name="toUrl">Absolute path (no server name)</param>
  1099. <param name="shouldRedirect">true if request should be redirected, false if the request URI should be replaced.</param>
  1100. <example>
  1101. server.Add(new RedirectRule("/", "/user/index"));
  1102. </example>
  1103. </member>
  1104. <member name="M:HttpServer.Rules.RedirectRule.Process(HttpServer.IHttpRequest,HttpServer.IHttpResponse)">
  1105. <summary>
  1106. Process the incoming request.
  1107. </summary>
  1108. <param name="request">incoming HTTP request</param>
  1109. <param name="response">outgoing HTTP response</param>
  1110. <returns>true if response should be sent to the browser directly (no other rules or modules will be processed).</returns>
  1111. <remarks>
  1112. returning true means that no modules will get the request. Returning true is typically being done
  1113. for redirects.
  1114. </remarks>
  1115. </member>
  1116. <member name="P:HttpServer.Rules.RedirectRule.FromUrl">
  1117. <summary>
  1118. Gets string to match request URI with.
  1119. </summary>
  1120. <remarks>Is compared to request.Uri.AbsolutePath</remarks>
  1121. </member>
  1122. <member name="P:HttpServer.Rules.RedirectRule.ToUrl">
  1123. <summary>
  1124. Gets where to redirect.
  1125. </summary>
  1126. </member>
  1127. <member name="P:HttpServer.Rules.RedirectRule.ShouldRedirect">
  1128. <summary>
  1129. Gets whether server should redirect client.
  1130. </summary>
  1131. <remarks>
  1132. <c>false</c> means that the rule will replace
  1133. the current request URI with the new one from this class.
  1134. <c>true</c> means that a redirect response is sent to the client.
  1135. </remarks>
  1136. </member>
  1137. <member name="T:HttpServer.RequestCookie">
  1138. <summary>
  1139. cookie sent by the client/browser
  1140. </summary>
  1141. <seealso cref="T:HttpServer.ResponseCookie"/>
  1142. </member>
  1143. <member name="M:HttpServer.RequestCookie.#ctor(System.String,System.String)">
  1144. <summary>
  1145. Constructor.
  1146. </summary>
  1147. <param name="id">cookie identifier</param>
  1148. <param name="content">cookie content</param>
  1149. <exception cref="T:System.ArgumentNullException">id or content is null</exception>
  1150. <exception cref="T:System.ArgumentException">id is empty</exception>
  1151. </member>
  1152. <member name="M:HttpServer.RequestCookie.ToString">
  1153. <summary>
  1154. Gets the cookie HTML representation.
  1155. </summary>
  1156. <returns>cookie string</returns>
  1157. </member>
  1158. <member name="P:HttpServer.RequestCookie.Name">
  1159. <summary>
  1160. Gets the cookie identifier.
  1161. </summary>
  1162. </member>
  1163. <member name="P:HttpServer.RequestCookie.Value">
  1164. <summary>
  1165. Cookie value. Set to null to remove cookie.
  1166. </summary>
  1167. </member>
  1168. <member name="T:HttpServer.LogPrio">
  1169. <summary>
  1170. Priority for log entries
  1171. </summary>
  1172. <seealso cref="T:HttpServer.ILogWriter"/>
  1173. </member>
  1174. <member name="F:HttpServer.LogPrio.Trace">
  1175. <summary>
  1176. Very detailed logs to be able to follow the flow of the program.
  1177. </summary>
  1178. </member>
  1179. <member name="F:HttpServer.LogPrio.Debug">
  1180. <summary>
  1181. Logs to help debug errors in the application
  1182. </summary>
  1183. </member>
  1184. <member name="F:HttpServer.LogPrio.Info">
  1185. <summary>
  1186. Information to be able to keep track of state changes etc.
  1187. </summary>
  1188. </member>
  1189. <member name="F:HttpServer.LogPrio.Warning">
  1190. <summary>
  1191. Something did not go as we expected, but it's no problem.
  1192. </summary>
  1193. </member>
  1194. <member name="F:HttpServer.LogPrio.Error">
  1195. <summary>
  1196. Something that should not fail failed, but we can still keep
  1197. on going.
  1198. </summary>
  1199. </member>
  1200. <member name="F:HttpServer.LogPrio.Fatal">
  1201. <summary>
  1202. Something failed, and we cannot handle it properly.
  1203. </summary>
  1204. </member>
  1205. <member name="T:HttpServer.ILogWriter">
  1206. <summary>
  1207. Interface used to write to log files.
  1208. </summary>
  1209. </member>
  1210. <member name="M:HttpServer.ILogWriter.Write(System.Object,HttpServer.LogPrio,System.String)">
  1211. <summary>
  1212. Write an entry to the log file.
  1213. </summary>
  1214. <param name="source">object that is writing to the log</param>
  1215. <param name="priority">importance of the log message</param>
  1216. <param name="message">the message</param>
  1217. </member>
  1218. <member name="T:HttpServer.ConsoleLogWriter">
  1219. <summary>
  1220. This class writes to the console. It colors the output depending on the logprio and includes a 3-level stacktrace (in debug mode)
  1221. </summary>
  1222. <seealso cref="T:HttpServer.ILogWriter"/>
  1223. </member>
  1224. <member name="F:HttpServer.ConsoleLogWriter.Instance">
  1225. <summary>
  1226. The actual instance of this class.
  1227. </summary>
  1228. </member>
  1229. <member name="M:HttpServer.ConsoleLogWriter.Write(System.Object,HttpServer.LogPrio,System.String)">
  1230. <summary>
  1231. Logwriters the specified source.
  1232. </summary>
  1233. <param name="source">object that wrote the logentry.</param>
  1234. <param name="prio">Importance of the log message</param>
  1235. <param name="message">The message.</param>
  1236. </member>
  1237. <member name="M:HttpServer.ConsoleLogWriter.GetColor(HttpServer.LogPrio)">
  1238. <summary>
  1239. Get color for the specified logprio
  1240. </summary>
  1241. <param name="prio">prio for the log entry</param>
  1242. <returns>A <see cref="T:System.ConsoleColor"/> for the prio</returns>
  1243. </member>
  1244. <member name="T:HttpServer.NullLogWriter">
  1245. <summary>
  1246. Default log writer, writes everything to null (nowhere).
  1247. </summary>
  1248. <seealso cref="T:HttpServer.ILogWriter"/>
  1249. </member>
  1250. <member name="F:HttpServer.NullLogWriter.Instance">
  1251. <summary>
  1252. The logging instance.
  1253. </summary>
  1254. </member>
  1255. <member name="M:HttpServer.NullLogWriter.Write(System.Object,HttpServer.LogPrio,System.String)">
  1256. <summary>
  1257. Writes everything to null
  1258. </summary>
  1259. <param name="source">object that wrote the log entry.</param>
  1260. <param name="prio">Importance of the log message</param>
  1261. <param name="message">The message.</param>
  1262. </member>
  1263. <member name="T:HttpServer.IHttpContextHandler">
  1264. <summary>
  1265. Class that receives Requests from a <see cref="T:HttpServer.IHttpClientContext"/>.
  1266. </summary>
  1267. </member>
  1268. <member name="M:HttpServer.IHttpContextHandler.ClientDisconnected(HttpServer.IHttpClientContext,System.Net.Sockets.SocketError)">
  1269. <summary>
  1270. Client have been disconnected.
  1271. </summary>
  1272. <param name="client">Client that was disconnected.</param>
  1273. <param name="error">Reason</param>
  1274. <see cref="T:HttpServer.IHttpClientContext"/>
  1275. </member>
  1276. <member name="M:HttpServer.IHttpContextHandler.RequestReceived(HttpServer.IHttpClientContext,HttpServer.IHttpRequest)">
  1277. <summary>
  1278. Invoked when a client context have received a new HTTP request
  1279. </summary>
  1280. <param name="client">Client that received the request.</param>
  1281. <param name="request">Request that was received.</param>
  1282. <see cref="T:HttpServer.IHttpClientContext"/>
  1283. </member>
  1284. <member name="T:HttpServer.Helpers.JSHelper">
  1285. <summary>
  1286. Will contain helper functions for javascript.
  1287. </summary>
  1288. </member>
  1289. <member name="M:HttpServer.Helpers.JSHelper.AjaxRequest(System.String,System.String[])">
  1290. <summary>
  1291. Requests a url through ajax
  1292. </summary>
  1293. <param name="url">url to fetch. Url is NOT enclosed in quotes by the implementation. You need to do that yourself.</param>
  1294. <param name="options">optional options in format "key, value, key, value", used in JS request object. All keys should end with colon.</param>
  1295. <returns>a link tag</returns>
  1296. <remarks>onclick attribute is used by this method.</remarks>
  1297. <example>
  1298. <code>
  1299. // plain text
  1300. JSHelper.AjaxRequest("'/user/show/1'");
  1301. // ajax request using this.href
  1302. string link = "&lt;a href=\"/user/call/1\" onclick=\"" + JSHelper.AjaxRequest("this.href") + "/&lt;call user&lt;/a&gt;";
  1303. </code>
  1304. </example>
  1305. </member>
  1306. <member name="M:HttpServer.Helpers.JSHelper.AjaxUpdater(System.String,System.String,System.String[])">
  1307. <summary>
  1308. Ajax requests that updates an element with
  1309. the fetched content
  1310. </summary>
  1311. <param name="url">url to fetch. Url is NOT enclosed in quotes by the implementation. You need to do that yourself.</param>
  1312. <param name="targetId">element to update</param>
  1313. <param name="options">options in format "key, value, key, value". All keys should end with colon.</param>
  1314. <returns>A link tag.</returns>
  1315. <example>
  1316. <code>
  1317. JSHelper.AjaxUpdater("'/user/show/1'", "user", "onsuccess:", "alert('hello');", "asynchronous:", "true");
  1318. </code>
  1319. </example>
  1320. </member>
  1321. <member name="M:HttpServer.Helpers.JSHelper.CreateDialog(System.String,System.String,System.String[])">
  1322. <summary>
  1323. Opens contents in a dialog window.
  1324. </summary>
  1325. <param name="url">url to contents of dialog</param>
  1326. <param name="title">link title</param>
  1327. <param name="options">name, value, name, value, all parameter names should end with colon.</param>
  1328. </member>
  1329. <member name="M:HttpServer.Helpers.JSHelper.CloseDialog">
  1330. <summary>
  1331. Close a javascript dialog window/div.
  1332. </summary>
  1333. <returns>javascript for closing a dialog.</returns>
  1334. <see cref="M:HttpServer.Helpers.JSHelper.CreateDialog(System.String,System.String,System.String[])"/>
  1335. </member>
  1336. <member name="T:HttpServer.Helpers.FormHelper">
  1337. <summary>
  1338. Helpers making it easier to work with forms.
  1339. </summary>
  1340. <seealso cref="T:HttpServer.Helpers.ObjectForm"/>
  1341. </member>
  1342. <member name="F:HttpServer.Helpers.FormHelper.JSImplementation">
  1343. <summary>
  1344. Used to let the website use different JavaScript libraries.
  1345. Default is <see cref="T:HttpServer.Helpers.Implementations.PrototypeImp"/>
  1346. </summary>
  1347. </member>
  1348. <member name="M:HttpServer.Helpers.FormHelper.Start(System.String,System.String,System.Boolean,System.String[])">
  1349. <summary>
  1350. Create a &lt;form&gt; tag.
  1351. </summary>
  1352. <param name="id">name of form</param>
  1353. <param name="action">action to invoke on submit</param>
  1354. <param name="isAjax">form should be posted as Ajax</param>
  1355. <returns>HTML code</returns>
  1356. <example>
  1357. <code>
  1358. // without options
  1359. WebHelper.FormStart("frmLogin", "/user/login", Request.IsAjax);
  1360. // with options
  1361. WebHelper.FormStart("frmLogin", "/user/login", Request.IsAjax, "style", "display:inline", "class", "greenForm");
  1362. </code>
  1363. </example>
  1364. <param name="options">HTML attributes or JavaScript options.</param>
  1365. <remarks>Method will ALWAYS be POST.</remarks>
  1366. <exception cref="T:System.ArgumentException">options must consist of name, value, name, value</exception>
  1367. </member>
  1368. <member name="M:HttpServer.Helpers.FormHelper.Select(System.String,System.Collections.IEnumerable,HttpServer.Helpers.GetIdTitle,System.Object,System.Boolean)">
  1369. <summary>
  1370. Creates a select list with the values in a collection.
  1371. </summary>
  1372. <param name="name">Name of the SELECT-tag</param>
  1373. <param name="collection">collection used to generate options.</param>
  1374. <param name="getIdTitle">delegate used to return id and title from objects.</param>
  1375. <param name="selectedValue">value that should be marked as selected.</param>
  1376. <param name="firstEmpty">First row should contain an empty value.</param>
  1377. <returns>string containing a SELECT-tag.</returns>
  1378. <seealso cref="T:HttpServer.Helpers.GetIdTitle"/>
  1379. </member>
  1380. <member name="M:HttpServer.Helpers.FormHelper.Select(System.String,System.String,System.Collections.IEnumerable,HttpServer.Helpers.GetIdTitle,System.Object,System.Boolean)">
  1381. <summary>
  1382. Creates a select list with the values in a collection.
  1383. </summary>
  1384. <param name="name">Name of the SELECT-tag</param>
  1385. <param name="id">Id of the SELECT-tag</param>
  1386. <param name="collection">collection used to generate options.</param>
  1387. <param name="getIdTitle">delegate used to return id and title from objects.</param>
  1388. <param name="selectedValue">value that should be marked as selected.</param>
  1389. <param name="firstEmpty">First row should contain an empty value.</param>
  1390. <returns>string containing a SELECT-tag.</returns>
  1391. <seealso cref="T:HttpServer.Helpers.GetIdTitle"/>
  1392. <example>
  1393. <code>
  1394. // Class that is going to be used in a SELECT-tag.
  1395. public class User
  1396. {
  1397. private readonly string _realName;
  1398. private readonly int _id;
  1399. public User(int id, string realName)
  1400. {
  1401. _id = id;
  1402. _realName = realName;
  1403. }
  1404. public string RealName
  1405. {
  1406. get { return _realName; }
  1407. }
  1408. public int Id
  1409. {
  1410. get { return _id; }
  1411. }
  1412. }
  1413. // Using an inline delegate to generate the select list
  1414. public void UserInlineDelegate()
  1415. {
  1416. List&lt;User&gt; items = new List&lt;User&gt;();
  1417. items.Add(new User(1, "adam"));
  1418. items.Add(new User(2, "bertial"));
  1419. items.Add(new User(3, "david"));
  1420. string htmlSelect = Select("users", "users", items, delegate(object o, out object id, out object value)
  1421. {
  1422. User user = (User)o;
  1423. id = user.Id;
  1424. value = user.RealName;
  1425. }, 2, true);
  1426. }
  1427. // Using an method as delegate to generate the select list.
  1428. public void UseExternalDelegate()
  1429. {
  1430. List&lt;User&gt; items = new List&lt;User&gt;();
  1431. items.Add(new User(1, "adam"));
  1432. items.Add(new User(2, "bertial"));
  1433. items.Add(new User(3, "david"));
  1434. string htmlSelect = Select("users", "users", items, UserOptions, 1, true);
  1435. }
  1436. // delegate returning id and title
  1437. public static void UserOptions(object o, out object id, out object title)
  1438. {
  1439. User user = (User)o;
  1440. id = user.Id;
  1441. value = user.RealName;
  1442. }
  1443. </code>
  1444. </example>
  1445. <exception cref="T:System.ArgumentNullException"><c>name</c>, <c>id</c>, <c>collection</c> or <c>getIdTitle</c> is null.</exception>
  1446. </member>
  1447. <member name="M:HttpServer.Helpers.FormHelper.Select(System.String,System.String,System.Collections.IEnumerable,HttpServer.Helpers.GetIdTitle,System.Object,System.Boolean,System.String[])">
  1448. <summary>
  1449. Creates a select list with the values in a collection.
  1450. </summary>
  1451. <param name="name">Name of the SELECT-tag</param>
  1452. <param name="id">Id of the SELECT-tag</param>
  1453. <param name="collection">collection used to generate options.</param>
  1454. <param name="getIdTitle">delegate used to return id and title from objects.</param>
  1455. <param name="selectedValue">value that should be marked as selected.</param>
  1456. <param name="firstEmpty">First row should contain an empty value.</param>
  1457. <param name="htmlAttributes">name, value collection of extra HTML attributes.</param>
  1458. <returns>string containing a SELECT-tag.</returns>
  1459. <seealso cref="T:HttpServer.Helpers.GetIdTitle"/>
  1460. <exception cref="T:System.ArgumentNullException"><c>name</c>, <c>id</c>, <c>collection</c> or <c>getIdTitle</c> is null.</exception>
  1461. <exception cref="T:System.ArgumentException">Invalid HTML attribute list.</exception>
  1462. </member>
  1463. <member name="M:HttpServer.Helpers.FormHelper.Options(System.Collections.IEnumerable,HttpServer.Helpers.GetIdTitle,System.Object,System.Boolean)">
  1464. <summary>
  1465. Generate a list of HTML options
  1466. </summary>
  1467. <param name="collection">collection used to generate options.</param>
  1468. <param name="getIdTitle">delegate used to return id and title from objects.</param>
  1469. <param name="selectedValue">value that should be marked as selected.</param>
  1470. <param name="firstEmpty">First row should contain an empty value.</param>
  1471. <returns></returns>
  1472. <exception cref="T:System.ArgumentNullException"><c>collection</c> or <c>getIdTitle</c> is null.</exception>
  1473. </member>
  1474. <member name="M:HttpServer.Helpers.FormHelper.Options(System.Text.StringBuilder,System.Collections.IEnumerable,HttpServer.Helpers.GetIdTitle,System.Object,System.Boolean)">
  1475. <exception cref="T:System.ArgumentNullException"><c>sb</c> is null.</exception>
  1476. </member>
  1477. <member name="M:HttpServer.Helpers.FormHelper.CheckBox(System.String,System.Object,System.Object,System.String[])">
  1478. <summary>
  1479. Creates a check box.
  1480. </summary>
  1481. <param name="name">element name</param>
  1482. <param name="value">element value</param>
  1483. <param name="isChecked">determines if the check box is selected or not. This is done differently depending on the
  1484. type of variable. A boolean simply triggers checked or not, all other types are compared with "value" to determine if
  1485. the box is checked or not. </param>
  1486. <param name="htmlAttributes">a list with additional attributes (name, value, name, value).</param>
  1487. <returns>a generated radio button</returns>
  1488. </member>
  1489. <member name="M:HttpServer.Helpers.FormHelper.CheckBox(System.String,System.String,System.Object,System.Object,System.String[])">
  1490. <summary>
  1491. Creates a check box.
  1492. </summary>
  1493. <param name="name">element name</param>
  1494. <param name="id">element id</param>
  1495. <param name="value">element value</param>
  1496. <param name="isChecked">determines if the check box is selected or not. This is done differently depending on the
  1497. type of variable. A boolean simply triggers checked or not, all other types are compared with "value" to determine if
  1498. the box is checked or not. </param>
  1499. <param name="htmlAttributes">a list with additional attributes (name, value, name, value).</param>
  1500. <returns>a generated radio button</returns>
  1501. <remarks>
  1502. value in your business object. (check box will be selected if it matches the element value)
  1503. </remarks>
  1504. </member>
  1505. <member name="M:HttpServer.Helpers.FormHelper.CheckBox(System.String,System.String,System.Object,System.String[])">
  1506. <summary>
  1507. Creates a check box.
  1508. </summary>
  1509. <param name="name">element name</param>
  1510. <param name="id">element id</param>
  1511. <param name="isChecked">determines if the check box is selected or not. This is done differently depending on the
  1512. type of variable. A boolean simply triggers checked or not, all other types are compared with "value" to determine if
  1513. the box is checked or not. </param>
  1514. <param name="htmlAttributes">a list with additional attributes (name, value, name, value).</param>
  1515. <returns>a generated radio button</returns>
  1516. <remarks>will set value to "1".</remarks>
  1517. </member>
  1518. <member name="M:HttpServer.Helpers.FormHelper.RadioButton(System.String,System.Object,System.Object,System.String[])">
  1519. <summary>
  1520. Creates a RadioButton.
  1521. </summary>
  1522. <param name="name">element name</param>
  1523. <param name="value">element value</param>
  1524. <param name="isSelected">determines if the radio button is selected or not. This is done differently depending on the
  1525. type of variable. A boolean simply triggers checked or not, all other types are compared with "value" to determine if
  1526. the box is checked or not. </param>
  1527. <param name="htmlAttributes">a list with additional attributes (name, value, name, value).</param>
  1528. <returns>a generated radio button</returns>
  1529. </member>
  1530. <member name="M:HttpServer.Helpers.FormHelper.RadioButton(System.String,System.String,System.Object,System.Object,System.String[])">
  1531. <summary>
  1532. Creates a RadioButton.
  1533. </summary>
  1534. <param name="name">element name</param>
  1535. <param name="id">element id</param>
  1536. <param name="value">element value</param>
  1537. <param name="isSelected">determines if the radio button is selected or not. This is done differently depending on the
  1538. type of variable. A boolean simply triggers checked or not, all other types are compared with "value" to determine if
  1539. the box is checked or not. </param>
  1540. <param name="htmlAttributes">a list with additional attributes (name, value, name, value).</param>
  1541. <returns>a generated radio button</returns>
  1542. </member>
  1543. <member name="M:HttpServer.Helpers.FormHelper.End">
  1544. <summary>
  1545. form close tag
  1546. </summary>
  1547. <returns></returns>
  1548. </member>
  1549. <member name="T:HttpServer.Sessions.HttpSessionClearedArgs">
  1550. <summary>
  1551. Arguments sent when a <see cref="T:HttpServer.Sessions.IHttpSession"/> is cleared
  1552. </summary>
  1553. </member>
  1554. <member name="M:HttpServer.Sessions.HttpSessionClearedArgs.#ctor(System.Boolean)">
  1555. <summary>
  1556. Instantiates the arguments for the event
  1557. </summary>
  1558. <param name="expired">True if the session is cleared due to expiration</param>
  1559. </member>
  1560. <member name="P:HttpServer.Sessions.HttpSessionClearedArgs.Expired">
  1561. <summary>
  1562. Returns true if the session is cleared due to expiration
  1563. </summary>
  1564. </member>
  1565. <member name="T:HttpServer.Sessions.HttpSessionClearedHandler">
  1566. <summary>
  1567. Delegate for when a IHttpSession is cleared
  1568. </summary>
  1569. <param name="session"><see cref="T:HttpServer.Sessions.IHttpSession"/> this is being cleared.</param>
  1570. <param name="args">Arguments for the clearing</param>
  1571. </member>
  1572. <member name="T:HttpServer.RequestQueue">
  1573. <summary>
  1574. Used to queue incoming requests.
  1575. </summary>
  1576. </member>
  1577. <member name="M:HttpServer.RequestQueue.#ctor(HttpServer.ProcessRequestHandler)">
  1578. <summary>
  1579. Initializes a new instance of the <see cref="T:HttpServer.RequestQueue"/> class.
  1580. </summary>
  1581. <param name="handler">Called when a request should be processed.</param>
  1582. </member>
  1583. <member name="M:HttpServer.RequestQueue.QueueThread">
  1584. <summary>
  1585. Used to process queued requests.
  1586. </summary>
  1587. </member>
  1588. <member name="P:HttpServer.RequestQueue.MaxRequestCount">
  1589. <summary>
  1590. Gets or sets maximum number of allowed simultaneous requests.
  1591. </summary>
  1592. </member>
  1593. <member name="P:HttpServer.RequestQueue.MaxQueueSize">
  1594. <summary>
  1595. Gets or sets maximum number of requests queuing to be handled.
  1596. </summary>
  1597. </member>
  1598. <member name="P:HttpServer.RequestQueue.CurrentRequestCount">
  1599. <summary>
  1600. Specifies how many requests the HTTP server is currently processing.
  1601. </summary>
  1602. </member>
  1603. <member name="T:HttpServer.RequestQueue.QueueItem">
  1604. <summary>
  1605. Used two queue incoming requests to avoid
  1606. thread starvation.
  1607. </summary>
  1608. </member>
  1609. <member name="T:HttpServer.ProcessRequestHandler">
  1610. <summary>
  1611. Method used to process a queued request
  1612. </summary>
  1613. <param name="context">Context that the request was received from.</param>
  1614. <param name="request">Request to process.</param>
  1615. </member>
  1616. <member name="T:HttpServer.RequestParserFactory">
  1617. <summary>
  1618. Creates request parsers when needed.
  1619. </summary>
  1620. </member>
  1621. <member name="T:HttpServer.IRequestParserFactory">
  1622. <summary>
  1623. Creates request parsers when needed.
  1624. </summary>
  1625. </member>
  1626. <member name="M:HttpServer.IRequestParserFactory.CreateParser(HttpServer.ILogWriter)">
  1627. <summary>
  1628. Create a new request parser.
  1629. </summary>
  1630. <param name="logWriter">Used when logging should be enabled.</param>
  1631. <returns>A new request parser.</returns>
  1632. </member>
  1633. <member name="M:HttpServer.RequestParserFactory.CreateParser(HttpServer.ILogWriter)">
  1634. <summary>
  1635. Create a new request parser.
  1636. </summary>
  1637. <param name="logWriter">Used when logging should be enabled.</param>
  1638. <returns>A new request parser.</returns>
  1639. </member>
  1640. <member name="T:HttpServer.HttpResponse">
  1641. <summary>
  1642. Response that is sent back to the web browser / client.
  1643. </summary>
  1644. <remarks>
  1645. <para>
  1646. A response can be sent if different ways. The easiest one is
  1647. to just fill the Body stream with content, everything else
  1648. will then be taken care of by the framework. The default content-type
  1649. is text/html, you should change it if you send anything else.
  1650. </para><para>
  1651. The second and slightly more complex way is to send the response
  1652. as parts. Start with sending the header using the SendHeaders method and
  1653. then you can send the body using SendBody method, but do not forget
  1654. to set <see cref="P:HttpServer.HttpResponse.ContentType"/> and <see cref="P:HttpServer.HttpResponse.ContentLength"/> before doing so.
  1655. </para>
  1656. </remarks>
  1657. <example>
  1658. <code>
  1659. // Example using response body.
  1660. class MyModule : HttpModule
  1661. {
  1662. public override bool Process(IHttpRequest request, IHttpResponse response, IHttpSession session)
  1663. {
  1664. StreamWriter writer = new StreamWriter(response.Body);
  1665. writer.WriteLine("Hello dear World!");
  1666. writer.Flush();
  1667. // return true to tell webserver that we've handled the url
  1668. return true;
  1669. }
  1670. }
  1671. </code>
  1672. </example>
  1673. todo: add two examples, using SendHeaders/SendBody and just the Body stream.
  1674. </member>
  1675. <member name="T:HttpServer.IHttpResponse">
  1676. <summary>
  1677. Response that is sent back to the web browser / client.
  1678. A response can be sent if different ways. The easiest one is
  1679. to just fill the Body stream with content, everything else
  1680. will then be taken care of by the framework. The default content-type
  1681. is text/html, you should change it if you send anything else.
  1682. The second and slighty more complex way is to send the response
  1683. as parts. Start with sending the header using the SendHeaders method and
  1684. then you can send the body using SendBody method, but do not forget
  1685. to set ContentType and ContentLength before doing so.
  1686. </summary>
  1687. <example>
  1688. public void MyHandler(IHttpRequest request, IHttpResponse response)
  1689. {
  1690. }
  1691. </example>
  1692. </member>
  1693. <member name="M:HttpServer.IHttpResponse.AddHeader(System.String,System.String)">
  1694. <summary>
  1695. Add another header to the document.
  1696. </summary>
  1697. <param name="name">Name of the header, case sensitive, use lower cases.</param>
  1698. <param name="value">Header values can span over multiple lines as long as each line starts with a white space. New line chars should be \r\n</param>
  1699. <exception cref="T:System.InvalidOperationException">If headers already been sent.</exception>
  1700. <exception cref="T:System.ArgumentException">If value conditions have not been met.</exception>
  1701. <remarks>Adding any header will override the default ones and those specified by properties.</remarks>
  1702. </member>
  1703. <member name="M:HttpServer.IHttpResponse.Send">
  1704. <summary>
  1705. Send headers and body to the browser.
  1706. </summary>
  1707. <exception cref="T:System.InvalidOperationException">If content have already been sent.</exception>
  1708. </member>
  1709. <member name="M:HttpServer.IHttpResponse.SendBody(System.Byte[],System.Int32,System.Int32)">
  1710. <summary>
  1711. Make sure that you have specified ContentLength and sent the headers first.
  1712. </summary>
  1713. <param name="buffer"></param>
  1714. <exception cref="T:System.InvalidOperationException">If headers have not been sent.</exception>
  1715. <see cref="M:HttpServer.IHttpResponse.SendHeaders"/>
  1716. <param name="offset">offest of first byte to send</param>
  1717. <param name="count">number of bytes to send.</param>
  1718. <seealso cref="M:HttpServer.IHttpResponse.Send"/>
  1719. <seealso cref="M:HttpServer.IHttpResponse.SendHeaders"/>
  1720. <remarks>This method can be used if you want to send body contents without caching them first. This
  1721. is recommended for larger files to keep the memory usage low.</remarks>
  1722. </member>
  1723. <member name="M:HttpServer.IHttpResponse.SendBody(System.Byte[])">
  1724. <summary>
  1725. Make sure that you have specified ContentLength and sent the headers first.
  1726. </summary>
  1727. <param name="buffer"></param>
  1728. <exception cref="T:System.InvalidOperationException">If headers have not been sent.</exception>
  1729. <see cref="M:HttpServer.IHttpResponse.SendHeaders"/>
  1730. <seealso cref="M:HttpServer.IHttpResponse.Send"/>
  1731. <seealso cref="M:HttpServer.IHttpResponse.SendHeaders"/>
  1732. <remarks>This method can be used if you want to send body contents without caching them first. This
  1733. is recommended for larger files to keep the memory usage low.</remarks>
  1734. </member>
  1735. <member name="M:HttpServer.IHttpResponse.SendHeaders">
  1736. <summary>
  1737. Send headers to the client.
  1738. </summary>
  1739. <exception cref="T:System.InvalidOperationException">If headers already been sent.</exception>
  1740. <seealso cref="M:HttpServer.IHttpResponse.AddHeader(System.String,System.String)"/>
  1741. <seealso cref="M:HttpServer.IHttpResponse.Send"/>
  1742. <seealso cref="M:HttpServer.IHttpResponse.SendBody(System.Byte[])"/>
  1743. </member>
  1744. <member name="M:HttpServer.IHttpResponse.Redirect(System.Uri)">
  1745. <summary>
  1746. Redirect client to somewhere else using the 302 status code.
  1747. </summary>
  1748. <param name="uri">Destination of the redirect</param>
  1749. <exception cref="T:System.InvalidOperationException">If headers already been sent.</exception>
  1750. <remarks>You can not do anything more with the request when a redirect have been done. This should be your last
  1751. action.</remarks>
  1752. </member>
  1753. <member name="M:HttpServer.IHttpResponse.Redirect(System.String)">
  1754. <summary>
  1755. redirect to somewhere
  1756. </summary>
  1757. <param name="url">where the redirect should go</param>
  1758. <remarks>
  1759. No body are allowed when doing redirects.
  1760. </remarks>
  1761. </member>
  1762. <member name="P:HttpServer.IHttpResponse.Body">
  1763. <summary>
  1764. The body stream is used to cache the body contents
  1765. before sending everything to the client. It's the simplest
  1766. way to serve documents.
  1767. </summary>
  1768. </member>
  1769. <member name="P:HttpServer.IHttpResponse.ProtocolVersion">
  1770. <summary>
  1771. Defines the version of the HTTP Response for applications where it's required
  1772. for this to be forced.
  1773. </summary>
  1774. </member>
  1775. <member name="P:HttpServer.IHttpResponse.Chunked">
  1776. <summary>
  1777. The chunked encoding modifies the body of a message in order to
  1778. transfer it as a series of chunks, each with its own size indicator,
  1779. followed by an OPTIONAL trailer containing entity-header fields. This
  1780. allows dynamically produced content to be transferred along with the
  1781. information necessary for the recipient to verify that it has
  1782. received the full message.
  1783. </summary>
  1784. </member>
  1785. <member name="P:HttpServer.IHttpResponse.Connection">
  1786. <summary>
  1787. Kind of connection
  1788. </summary>
  1789. </member>
  1790. <member name="P:HttpServer.IHttpResponse.Encoding">
  1791. <summary>
  1792. Encoding to use when sending stuff to the client.
  1793. </summary>
  1794. <remarks>Default is UTF8</remarks>
  1795. </member>
  1796. <member name="P:HttpServer.IHttpResponse.KeepAlive">
  1797. <summary>
  1798. Number of seconds to keep connection alive
  1799. </summary>
  1800. <remarks>Only used if Connection property is set to ConnectionType.KeepAlive</remarks>
  1801. </member>
  1802. <member name="P:HttpServer.IHttpResponse.Status">
  1803. <summary>
  1804. Status code that is sent to the client.
  1805. </summary>
  1806. <remarks>Default is HttpStatusCode.Ok</remarks>
  1807. </member>
  1808. <member name="P:HttpServer.IHttpResponse.Reason">
  1809. <summary>
  1810. Information about why a specific status code was used.
  1811. </summary>
  1812. </member>
  1813. <member name="P:HttpServer.IHttpResponse.ContentLength">
  1814. <summary>
  1815. Size of the body. MUST be specified before sending the header,
  1816. unless property Chunked is set to true.
  1817. </summary>
  1818. </member>
  1819. <member name="P:HttpServer.IHttpResponse.ContentType">
  1820. <summary>
  1821. Kind of content in the body
  1822. </summary>
  1823. <remarks>Default is text/html</remarks>
  1824. </member>
  1825. <member name="P:HttpServer.IHttpResponse.HeadersSent">
  1826. <summary>
  1827. Headers have been sent to the client-
  1828. </summary>
  1829. <remarks>You can not send any additional headers if they have already been sent.</remarks>
  1830. </member>
  1831. <member name="P:HttpServer.IHttpResponse.Sent">
  1832. <summary>
  1833. The whole response have been sent.
  1834. </summary>
  1835. </member>
  1836. <member name="P:HttpServer.IHttpResponse.Cookies">
  1837. <summary>
  1838. Cookies that should be created/changed.
  1839. </summary>
  1840. </member>
  1841. <member name="M:HttpServer.HttpResponse.#ctor(HttpServer.IHttpClientContext,HttpServer.IHttpRequest)">
  1842. <summary>
  1843. Initializes a new instance of the <see cref="T:HttpServer.IHttpResponse"/> class.
  1844. </summary>
  1845. <param name="context">Client that send the <see cref="T:HttpServer.IHttpRequest"/>.</param>
  1846. <param name="request">Contains information of what the client want to receive.</param>
  1847. <exception cref="T:System.ArgumentException"><see cref="P:HttpServer.IHttpRequest.HttpVersion"/> cannot be empty.</exception>
  1848. </member>
  1849. <member name="M:HttpServer.HttpResponse.#ctor(HttpServer.IHttpClientContext,System.String,HttpServer.ConnectionType)">
  1850. <summary>
  1851. Initializes a new instance of the <see cref="T:HttpServer.IHttpResponse"/> class.
  1852. </summary>
  1853. <param name="context">Client that send the <see cref="T:HttpServer.IHttpRequest"/>.</param>
  1854. <param name="httpVersion">Version of HTTP protocol that the client uses.</param>
  1855. <param name="connectionType">Type of HTTP connection used.</param>
  1856. </member>
  1857. <member name="M:HttpServer.HttpResponse.AddHeader(System.String,System.String)">
  1858. <summary>
  1859. Add another header to the document.
  1860. </summary>
  1861. <param name="name">Name of the header, case sensitive, use lower cases.</param>
  1862. <param name="value">Header values can span over multiple lines as long as each line starts with a white space. New line chars should be \r\n</param>
  1863. <exception cref="T:System.InvalidOperationException">If headers already been sent.</exception>
  1864. <exception cref="T:System.ArgumentException">If value conditions have not been met.</exception>
  1865. <remarks>Adding any header will override the default ones and those specified by properties.</remarks>
  1866. </member>
  1867. <member name="M:HttpServer.HttpResponse.Send">
  1868. <summary>
  1869. Send headers and body to the browser.
  1870. </summary>
  1871. <exception cref="T:System.InvalidOperationException">If content have already been sent.</exception>
  1872. </member>
  1873. <member name="M:HttpServer.HttpResponse.SendBody(System.Byte[],System.Int32,System.Int32)">
  1874. <summary>
  1875. Make sure that you have specified <see cref="P:HttpServer.HttpResponse.ContentLength"/> and sent the headers first.
  1876. </summary>
  1877. <param name="buffer"></param>
  1878. <exception cref="T:System.InvalidOperationException">If headers have not been sent.</exception>
  1879. <see cref="M:HttpServer.HttpResponse.SendHeaders"/>
  1880. <param name="offset">offset of first byte to send</param>
  1881. <param name="count">number of bytes to send.</param>
  1882. <seealso cref="M:HttpServer.HttpResponse.Send"/>
  1883. <seealso cref="M:HttpServer.HttpResponse.SendHeaders"/>
  1884. <remarks>This method can be used if you want to send body contents without caching them first. This
  1885. is recommended for larger files to keep the memory usage low.</remarks>
  1886. </member>
  1887. <member name="M:HttpServer.HttpResponse.SendBody(System.Byte[])">
  1888. <summary>
  1889. Make sure that you have specified <see cref="P:HttpServer.HttpResponse.ContentLength"/> and sent the headers first.
  1890. </summary>
  1891. <param name="buffer"></param>
  1892. <exception cref="T:System.InvalidOperationException">If headers have not been sent.</exception>
  1893. <see cref="M:HttpServer.HttpResponse.SendHeaders"/>
  1894. <seealso cref="M:HttpServer.HttpResponse.Send"/>
  1895. <seealso cref="M:HttpServer.HttpResponse.SendHeaders"/>
  1896. <remarks>This method can be used if you want to send body contents without caching them first. This
  1897. is recommended for larger files to keep the memory usage low.</remarks>
  1898. </member>
  1899. <member name="M:HttpServer.HttpResponse.SendHeaders">
  1900. <summary>
  1901. Send headers to the client.
  1902. </summary>
  1903. <exception cref="T:System.InvalidOperationException">If headers already been sent.</exception>
  1904. <seealso cref="M:HttpServer.HttpResponse.AddHeader(System.String,System.String)"/>
  1905. <seealso cref="M:HttpServer.HttpResponse.Send"/>
  1906. <seealso cref="M:HttpServer.HttpResponse.SendBody(System.Byte[])"/>
  1907. </member>
  1908. <member name="M:HttpServer.HttpResponse.Redirect(System.Uri)">
  1909. <summary>
  1910. Redirect client to somewhere else using the 302 status code.
  1911. </summary>
  1912. <param name="uri">Destination of the redirect</param>
  1913. <exception cref="T:System.InvalidOperationException">If headers already been sent.</exception>
  1914. <remarks>You can not do anything more with the request when a redirect have been done. This should be your last
  1915. action.</remarks>
  1916. </member>
  1917. <member name="M:HttpServer.HttpResponse.Redirect(System.String)">
  1918. <summary>
  1919. redirect to somewhere
  1920. </summary>
  1921. <param name="url">where the redirect should go</param>
  1922. <remarks>
  1923. No body are allowed when doing redirects.
  1924. </remarks>
  1925. </member>
  1926. <member name="P:HttpServer.HttpResponse.Body">
  1927. <summary>
  1928. The body stream is used to cache the body contents
  1929. before sending everything to the client. It's the simplest
  1930. way to serve documents.
  1931. </summary>
  1932. </member>
  1933. <member name="P:HttpServer.HttpResponse.Chunked">
  1934. <summary>
  1935. The chunked encoding modifies the body of a message in order to
  1936. transfer it as a series of chunks, each with its own size indicator,
  1937. followed by an OPTIONAL trailer containing entity-header fields. This
  1938. allows dynamically produced content to be transferred along with the
  1939. information necessary for the recipient to verify that it has
  1940. received the full message.
  1941. </summary>
  1942. </member>
  1943. <member name="P:HttpServer.HttpResponse.ProtocolVersion">
  1944. <summary>
  1945. Defines the version of the HTTP Response for applications where it's required
  1946. for this to be forced.
  1947. </summary>
  1948. </member>
  1949. <member name="P:HttpServer.HttpResponse.Connection">
  1950. <summary>
  1951. Kind of connection
  1952. </summary>
  1953. </member>
  1954. <member name="P:HttpServer.HttpResponse.Encoding">
  1955. <summary>
  1956. Encoding to use when sending stuff to the client.
  1957. </summary>
  1958. <remarks>Default is UTF8</remarks>
  1959. </member>
  1960. <member name="P:HttpServer.HttpResponse.KeepAlive">
  1961. <summary>
  1962. Number of seconds to keep connection alive
  1963. </summary>
  1964. <remarks>Only used if Connection property is set to <see cref="F:HttpServer.ConnectionType.KeepAlive"/>.</remarks>
  1965. </member>
  1966. <member name="P:HttpServer.HttpResponse.Status">
  1967. <summary>
  1968. Status code that is sent to the client.
  1969. </summary>
  1970. <remarks>Default is <see cref="F:System.Net.HttpStatusCode.OK"/></remarks>
  1971. </member>
  1972. <member name="P:HttpServer.HttpResponse.Reason">
  1973. <summary>
  1974. Information about why a specific status code was used.
  1975. </summary>
  1976. </member>
  1977. <member name="P:HttpServer.HttpResponse.ContentLength">
  1978. <summary>
  1979. Size of the body. MUST be specified before sending the header,
  1980. unless property Chunked is set to true.
  1981. </summary>
  1982. </member>
  1983. <member name="P:HttpServer.HttpResponse.ContentType">
  1984. <summary>
  1985. Kind of content in the body
  1986. </summary>
  1987. <remarks>Default type is "text/html"</remarks>
  1988. </member>
  1989. <member name="P:HttpServer.HttpResponse.HeadersSent">
  1990. <summary>
  1991. Headers have been sent to the client-
  1992. </summary>
  1993. <remarks>You can not send any additional headers if they have already been sent.</remarks>
  1994. </member>
  1995. <member name="P:HttpServer.HttpResponse.Sent">
  1996. <summary>
  1997. The whole response have been sent.
  1998. </summary>
  1999. </member>
  2000. <member name="P:HttpServer.HttpResponse.Cookies">
  2001. <summary>
  2002. Cookies that should be created/changed.
  2003. </summary>
  2004. </member>
  2005. <member name="T:HttpServer.HttpContextFactory">
  2006. <summary>
  2007. Used to create and reuse contexts.
  2008. </summary>
  2009. </member>
  2010. <member name="T:HttpServer.IHttpContextFactory">
  2011. <summary>
  2012. Used to create <see cref="T:HttpServer.IHttpClientContext"/>es.
  2013. </summary>
  2014. </member>
  2015. <member name="M:HttpServer.IHttpContextFactory.CreateContext(System.Net.Sockets.Socket)">
  2016. <summary>
  2017. Creates a <see cref="T:HttpServer.IHttpClientContext"/> that handles a connected client.
  2018. </summary>
  2019. <param name="socket">Client socket (accepted by the <see cref="T:HttpServer.HttpListener"/>).</param>
  2020. <returns>A creates <see cref="T:HttpServer.IHttpClientContext"/>.</returns>
  2021. </member>
  2022. <member name="M:HttpServer.IHttpContextFactory.CreateSecureContext(System.Net.Sockets.Socket,System.Security.Cryptography.X509Certificates.X509Certificate,System.Security.Authentication.SslProtocols)">
  2023. <summary>
  2024. Create a secure <see cref="T:HttpServer.IHttpClientContext"/>.
  2025. </summary>
  2026. <param name="socket">Client socket (accepted by the <see cref="T:HttpServer.HttpListener"/>).</param>
  2027. <param name="certificate">HTTPS certificate to use.</param>
  2028. <param name="protocol">Kind of HTTPS protocol. Usually TLS or SSL.</param>
  2029. <returns>A created <see cref="T:HttpServer.IHttpClientContext"/>.</returns>
  2030. </member>
  2031. <member name="E:HttpServer.IHttpContextFactory.RequestReceived">
  2032. <summary>
  2033. A request have been received from one of the contexts.
  2034. </summary>
  2035. </member>
  2036. <member name="M:HttpServer.HttpContextFactory.#ctor(HttpServer.ILogWriter,System.Int32,HttpServer.IRequestParserFactory)">
  2037. <summary>
  2038. Initializes a new instance of the <see cref="T:HttpServer.HttpContextFactory"/> class.
  2039. </summary>
  2040. <param name="writer">The writer.</param>
  2041. <param name="bufferSize">Amount of bytes to read from the incoming socket stream.</param>
  2042. <param name="factory">Used to create a request parser.</param>
  2043. </member>
  2044. <member name="M:HttpServer.HttpContextFactory.CreateContext(System.Boolean,System.Net.IPEndPoint,System.IO.Stream,System.Net.Sockets.Socket)">
  2045. <summary>
  2046. Create a new context.
  2047. </summary>
  2048. <param name="isSecured">true if socket is running HTTPS.</param>
  2049. <param name="endPoint">Client that connected</param>
  2050. <param name="stream">Network/SSL stream.</param>
  2051. <returns>A context.</returns>
  2052. </member>
  2053. <member name="M:HttpServer.HttpContextFactory.CreateNewContext(System.Boolean,System.Net.IPEndPoint,System.IO.Stream,System.Net.Sockets.Socket)">
  2054. <summary>
  2055. Create a new context.
  2056. </summary>
  2057. <param name="isSecured">true if HTTPS is used.</param>
  2058. <param name="endPoint">Remote client</param>
  2059. <param name="stream">Network stream, <see cref="T:HttpServer.HttpClientContext"/> uses <see cref="T:HttpServer.ReusableSocketNetworkStream"/>.</param>
  2060. <returns>A new context (always).</returns>
  2061. </member>
  2062. <member name="M:HttpServer.HttpContextFactory.CreateSecureContext(System.Net.Sockets.Socket,System.Security.Cryptography.X509Certificates.X509Certificate,System.Security.Authentication.SslProtocols)">
  2063. <summary>
  2064. Create a secure <see cref="T:HttpServer.IHttpClientContext"/>.
  2065. </summary>
  2066. <param name="socket">Client socket (accepted by the <see cref="T:HttpServer.HttpListener"/>).</param>
  2067. <param name="certificate">HTTPS certificate to use.</param>
  2068. <param name="protocol">Kind of HTTPS protocol. Usually TLS or SSL.</param>
  2069. <returns>
  2070. A created <see cref="T:HttpServer.IHttpClientContext"/>.
  2071. </returns>
  2072. </member>
  2073. <member name="M:HttpServer.HttpContextFactory.CreateContext(System.Net.Sockets.Socket)">
  2074. <summary>
  2075. Creates a <see cref="T:HttpServer.IHttpClientContext"/> that handles a connected client.
  2076. </summary>
  2077. <param name="socket">Client socket (accepted by the <see cref="T:HttpServer.HttpListener"/>).</param>
  2078. <returns>
  2079. A creates <see cref="T:HttpServer.IHttpClientContext"/>.
  2080. </returns>
  2081. </member>
  2082. <member name="P:HttpServer.HttpContextFactory.UseTraceLogs">
  2083. <summary>
  2084. True if detailed trace logs should be written.
  2085. </summary>
  2086. </member>
  2087. <member name="E:HttpServer.HttpContextFactory.RequestReceived">
  2088. <summary>
  2089. A request have been received from one of the contexts.
  2090. </summary>
  2091. </member>
  2092. <member name="T:HttpServer.ReusableSocketNetworkStream">
  2093. <summary>
  2094. Custom network stream to mark sockets as reusable when disposing the stream.
  2095. </summary>
  2096. </member>
  2097. <member name="M:HttpServer.ReusableSocketNetworkStream.#ctor(System.Net.Sockets.Socket)">
  2098. <summary>
  2099. Creates a new instance of the <see cref="T:System.Net.Sockets.NetworkStream" /> class for the specified <see cref="T:System.Net.Sockets.Socket" />.
  2100. </summary>
  2101. <param name="socket">
  2102. The <see cref="T:System.Net.Sockets.Socket" /> that the <see cref="T:System.Net.Sockets.NetworkStream" /> will use to send and receive data.
  2103. </param>
  2104. <exception cref="T:System.ArgumentNullException">
  2105. The <paramref name="socket" /> parameter is null.
  2106. </exception>
  2107. <exception cref="T:System.IO.IOException">
  2108. The <paramref name="socket" /> parameter is not connected.
  2109. -or-
  2110. The <see cref="P:System.Net.Sockets.Socket.SocketType" /> property of the <paramref name="socket" /> parameter is not <see cref="F:System.Net.Sockets.SocketType.Stream" />.
  2111. -or-
  2112. The <paramref name="socket" /> parameter is in a nonblocking state.
  2113. </exception>
  2114. </member>
  2115. <member name="M:HttpServer.ReusableSocketNetworkStream.#ctor(System.Net.Sockets.Socket,System.Boolean)">
  2116. <summary>
  2117. Initializes a new instance of the <see cref="T:System.Net.Sockets.NetworkStream" /> class for the specified <see cref="T:System.Net.Sockets.Socket" /> with the specified <see cref="T:System.Net.Sockets.Socket" /> ownership.
  2118. </summary>
  2119. <param name="socket">
  2120. The <see cref="T:System.Net.Sockets.Socket" /> that the <see cref="T:System.Net.Sockets.NetworkStream" /> will use to send and receive data.
  2121. </param>
  2122. <param name="ownsSocket">
  2123. Set to true to indicate that the <see cref="T:System.Net.Sockets.NetworkStream" /> will take ownership of the <see cref="T:System.Net.Sockets.Socket" />; otherwise, false.
  2124. </param>
  2125. <exception cref="T:System.ArgumentNullException">
  2126. The <paramref name="socket" /> parameter is null.
  2127. </exception>
  2128. <exception cref="T:System.IO.IOException">
  2129. The <paramref name="socket" /> parameter is not connected.
  2130. -or-
  2131. the value of the <see cref="P:System.Net.Sockets.Socket.SocketType" /> property of the <paramref name="socket" /> parameter is not <see cref="F:System.Net.Sockets.SocketType.Stream" />.
  2132. -or-
  2133. the <paramref name="socket" /> parameter is in a nonblocking state.
  2134. </exception>
  2135. </member>
  2136. <member name="M:HttpServer.ReusableSocketNetworkStream.#ctor(System.Net.Sockets.Socket,System.IO.FileAccess)">
  2137. <summary>
  2138. Creates a new instance of the <see cref="T:System.Net.Sockets.NetworkStream" /> class for the specified <see cref="T:System.Net.Sockets.Socket" /> with the specified access rights.
  2139. </summary>
  2140. <param name="socket">
  2141. The <see cref="T:System.Net.Sockets.Socket" /> that the <see cref="T:System.Net.Sockets.NetworkStream" /> will use to send and receive data.
  2142. </param>
  2143. <param name="access">
  2144. A bitwise combination of the <see cref="T:System.IO.FileAccess" /> values that specify the type of access given to the <see cref="T:System.Net.Sockets.NetworkStream" /> over the provided <see cref="T:System.Net.Sockets.Socket" />.
  2145. </param>
  2146. <exception cref="T:System.ArgumentNullException">
  2147. The <paramref name="socket" /> parameter is null.
  2148. </exception>
  2149. <exception cref="T:System.IO.IOException">
  2150. The <paramref name="socket" /> parameter is not connected.
  2151. -or-
  2152. the <see cref="P:System.Net.Sockets.Socket.SocketType" /> property of the <paramref name="socket" /> parameter is not <see cref="F:System.Net.Sockets.SocketType.Stream" />.
  2153. -or-
  2154. the <paramref name="socket" /> parameter is in a nonblocking state.
  2155. </exception>
  2156. </member>
  2157. <member name="M:HttpServer.ReusableSocketNetworkStream.#ctor(System.Net.Sockets.Socket,System.IO.FileAccess,System.Boolean)">
  2158. <summary>
  2159. Creates a new instance of the <see cref="T:System.Net.Sockets.NetworkStream" /> class for the specified <see cref="T:System.Net.Sockets.Socket" /> with the specified access rights and the specified <see cref="T:System.Net.Sockets.Socket" /> ownership.
  2160. </summary>
  2161. <param name="socket">
  2162. The <see cref="T:System.Net.Sockets.Socket" /> that the <see cref="T:System.Net.Sockets.NetworkStream" /> will use to send and receive data.
  2163. </param>
  2164. <param name="access">
  2165. A bitwise combination of the <see cref="T:System.IO.FileAccess" /> values that specifies the type of access given to the <see cref="T:System.Net.Sockets.NetworkStream" /> over the provided <see cref="T:System.Net.Sockets.Socket" />.
  2166. </param>
  2167. <param name="ownsSocket">
  2168. Set to true to indicate that the <see cref="T:System.Net.Sockets.NetworkStream" /> will take ownership of the <see cref="T:System.Net.Sockets.Socket" />; otherwise, false.
  2169. </param>
  2170. <exception cref="T:System.ArgumentNullException">
  2171. The <paramref name="socket" /> parameter is null.
  2172. </exception>
  2173. <exception cref="T:System.IO.IOException">
  2174. The <paramref name="socket" /> parameter is not connected.
  2175. -or-
  2176. The <see cref="P:System.Net.Sockets.Socket.SocketType" /> property of the <paramref name="socket" /> parameter is not <see cref="F:System.Net.Sockets.SocketType.Stream" />.
  2177. -or-
  2178. The <paramref name="socket" /> parameter is in a nonblocking state.
  2179. </exception>
  2180. </member>
  2181. <member name="M:HttpServer.ReusableSocketNetworkStream.Close">
  2182. <summary>
  2183. Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
  2184. </summary>
  2185. </member>
  2186. <member name="M:HttpServer.ReusableSocketNetworkStream.Dispose(System.Boolean)">
  2187. <summary>
  2188. Releases the unmanaged resources used by the <see cref="T:System.Net.Sockets.NetworkStream"/> and optionally releases the managed resources.
  2189. </summary>
  2190. <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param>
  2191. </member>
  2192. <member name="T:HttpServer.Authentication.BasicAuthentication">
  2193. <summary>
  2194. The "basic" authentication scheme is based on the model that the
  2195. client must authenticate itself with a user-ID and a password for
  2196. each realm. The realm value should be considered an opaque string
  2197. which can only be compared for equality with other realms on that
  2198. server. The server will service the request only if it can validate
  2199. the user-ID and password for the protection space of the Request-URI.
  2200. There are no optional authentication parameters.
  2201. </summary>
  2202. </member>
  2203. <member name="T:HttpServer.Authentication.AuthenticationModule">
  2204. <summary>
  2205. Authentication modules are used to implement different
  2206. kind of HTTP authentication.
  2207. </summary>
  2208. </member>
  2209. <member name="F:HttpServer.Authentication.AuthenticationModule.AuthenticationTag">
  2210. <summary>
  2211. Tag used for authentication.
  2212. </summary>
  2213. </member>
  2214. <member name="M:HttpServer.Authentication.AuthenticationModule.#ctor(HttpServer.Authentication.AuthenticationHandler,HttpServer.Authentication.AuthenticationRequiredHandler)">
  2215. <summary>
  2216. Initializes a new instance of the <see cref="T:HttpServer.Authentication.AuthenticationModule"/> class.
  2217. </summary>
  2218. <param name="authenticator">Delegate used to provide information used during authentication.</param>
  2219. <param name="authenticationRequiredHandler">Delegate used to determine if authentication is required (may be null).</param>
  2220. </member>
  2221. <member name="M:HttpServer.Authentication.AuthenticationModule.#ctor(HttpServer.Authentication.AuthenticationHandler)">
  2222. <summary>
  2223. Initializes a new instance of the <see cref="T:HttpServer.Authentication.AuthenticationModule"/> class.
  2224. </summary>
  2225. <param name="authenticator">Delegate used to provide information used during authentication.</param>
  2226. </member>
  2227. <member name="M:HttpServer.Authentication.AuthenticationModule.CreateResponse(System.String,System.Object[])">
  2228. <summary>
  2229. Create a response that can be sent in the WWW-Authenticate header.
  2230. </summary>
  2231. <param name="realm">Realm that the user should authenticate in</param>
  2232. <param name="options">Array with optional options.</param>
  2233. <returns>A correct authentication request.</returns>
  2234. <exception cref="T:System.ArgumentNullException">If realm is empty or null.</exception>
  2235. </member>
  2236. <member name="M:HttpServer.Authentication.AuthenticationModule.Authenticate(System.String,System.String,System.String,System.Object[])">
  2237. <summary>
  2238. An authentication response have been received from the web browser.
  2239. Check if it's correct
  2240. </summary>
  2241. <param name="authenticationHeader">Contents from the Authorization header</param>
  2242. <param name="realm">Realm that should be authenticated</param>
  2243. <param name="httpVerb">GET/POST/PUT/DELETE etc.</param>
  2244. <param name="options">options to specific implementations</param>
  2245. <returns>Authentication object that is stored for the request. A user class or something like that.</returns>
  2246. <exception cref="T:System.ArgumentException">if <paramref name="authenticationHeader"/> is invalid</exception>
  2247. <exception cref="T:System.ArgumentNullException">If any of the parameters is empty or null.</exception>
  2248. </member>
  2249. <member name="M:HttpServer.Authentication.AuthenticationModule.CheckAuthentication(System.String,System.String,System.String@,System.Object@)">
  2250. <summary>
  2251. Used to invoke the authentication delegate that is used to lookup the user name/realm.
  2252. </summary>
  2253. <param name="realm">Realm (domain) that user want to authenticate in</param>
  2254. <param name="userName">User name</param>
  2255. <param name="password">Password used for validation. Some implementations got password in clear text, they are then sent to client.</param>
  2256. <param name="login">object that will be stored in the request to help you identify the user if authentication was successful.</param>
  2257. <returns>true if authentication was successful</returns>
  2258. </member>
  2259. <member name="M:HttpServer.Authentication.AuthenticationModule.AuthenticationRequired(HttpServer.IHttpRequest)">
  2260. <summary>
  2261. Determines if authentication is required.
  2262. </summary>
  2263. <param name="request">HTTP request from browser</param>
  2264. <returns>true if user should be authenticated.</returns>
  2265. <remarks>throw <see cref="T:HttpServer.Exceptions.ForbiddenException"/> from your delegate if no more attempts are allowed.</remarks>
  2266. <exception cref="T:HttpServer.Exceptions.ForbiddenException">If no more attempts are allowed</exception>
  2267. </member>
  2268. <member name="P:HttpServer.Authentication.AuthenticationModule.Name">
  2269. <summary>
  2270. name used in HTTP request.
  2271. </summary>
  2272. </member>
  2273. <member name="M:HttpServer.Authentication.BasicAuthentication.#ctor(HttpServer.Authentication.AuthenticationHandler,HttpServer.Authentication.AuthenticationRequiredHandler)">
  2274. <summary>
  2275. Initializes a new instance of the <see cref="T:HttpServer.Authentication.BasicAuthentication"/> class.
  2276. </summary>
  2277. <param name="authenticator">Delegate used to provide information used during authentication.</param>
  2278. <param name="authenticationRequiredHandler">Delegate used to determine if authentication is required (may be null).</param>
  2279. </member>
  2280. <member name="M:HttpServer.Authentication.BasicAuthentication.#ctor(HttpServer.Authentication.AuthenticationHandler)">
  2281. <summary>
  2282. Initializes a new instance of the <see cref="T:HttpServer.Authentication.BasicAuthentication"/> class.
  2283. </summary>
  2284. <param name="authenticator">Delegate used to provide information used during authentication.</param>
  2285. </member>
  2286. <member name="M:HttpServer.Authentication.BasicAuthentication.CreateResponse(System.String,System.Object[])">
  2287. <summary>
  2288. Create a response that can be sent in the WWW-Authenticate header.
  2289. </summary>
  2290. <param name="realm">Realm that the user should authenticate in</param>
  2291. <param name="options">Not used in basic auth</param>
  2292. <returns>A correct auth request.</returns>
  2293. </member>
  2294. <member name="M:HttpServer.Authentication.BasicAuthentication.Authenticate(System.String,System.String,System.String,System.Object[])">
  2295. <summary>
  2296. An authentication response have been received from the web browser.
  2297. Check if it's correct
  2298. </summary>
  2299. <param name="authenticationHeader">Contents from the Authorization header</param>
  2300. <param name="realm">Realm that should be authenticated</param>
  2301. <param name="httpVerb">GET/POST/PUT/DELETE etc.</param>
  2302. <param name="options">Not used in basic auth</param>
  2303. <returns>Authentication object that is stored for the request. A user class or something like that.</returns>
  2304. <exception cref="T:System.ArgumentException">if authenticationHeader is invalid</exception>
  2305. <exception cref="T:System.ArgumentNullException">If any of the paramters is empty or null.</exception>
  2306. </member>
  2307. <member name="P:HttpServer.Authentication.BasicAuthentication.Name">
  2308. <summary>
  2309. name used in http request.
  2310. </summary>
  2311. </member>
  2312. <member name="T:HttpServer.HttpModules.HttpModuleExceptionEventArgs">
  2313. <summary>
  2314. Used to inform http server that
  2315. </summary>
  2316. </member>
  2317. <member name="M:HttpServer.HttpModules.HttpModuleExceptionEventArgs.#ctor(System.Exception)">
  2318. <summary>
  2319. Eventarguments used when an exception is thrown by a module
  2320. </summary>
  2321. <param name="e">the exception</param>
  2322. </member>
  2323. <member name="P:HttpServer.HttpModules.HttpModuleExceptionEventArgs.Exception">
  2324. <summary>
  2325. Exception thrown in a module
  2326. </summary>
  2327. </member>
  2328. <member name="T:HttpServer.Helpers.Implementations.PrototypeImp">
  2329. <summary>
  2330. PrototypeJS implementation of the javascript functions.
  2331. </summary>
  2332. </member>
  2333. <member name="T:HttpServer.Helpers.JavascriptHelperImplementation">
  2334. <summary>
  2335. Purpose of this class is to create a javascript toolkit independent javascript helper.
  2336. </summary>
  2337. </member>
  2338. <member name="M:HttpServer.Helpers.JavascriptHelperImplementation.GenerateOptions(System.Text.StringBuilder,System.String[],System.Boolean)">
  2339. <summary>
  2340. Generates a list with JS options.
  2341. </summary>
  2342. <param name="sb">StringBuilder that the options should be added to.</param>
  2343. <param name="options">the javascript options. name, value pairs. each string value should be escaped by YOU!</param>
  2344. <param name="startWithComma">true if we should start with a comma.</param>
  2345. </member>
  2346. <member name="M:HttpServer.Helpers.JavascriptHelperImplementation.RemoveJavascriptOptions(System.String[])">
  2347. <summary>
  2348. Removes any javascript parameters from an array of parameters
  2349. </summary>
  2350. <param name="options">The array of parameters to remove javascript params from</param>
  2351. <returns>An array of html parameters</returns>
  2352. </member>
  2353. <member name="M:HttpServer.Helpers.JavascriptHelperImplementation.AjaxFormOnSubmit(System.String[])">
  2354. <summary>
  2355. javascript action that should be added to the "onsubmit" event in the form tag.
  2356. </summary>
  2357. <returns></returns>
  2358. <remarks>All javascript option names should end with colon.</remarks>
  2359. <example>
  2360. <code>
  2361. JSHelper.AjaxRequest("/user/show/1", "onsuccess:", "$('userInfo').update(result);");
  2362. </code>
  2363. </example>
  2364. </member>
  2365. <member name="M:HttpServer.Helpers.JavascriptHelperImplementation.AjaxRequest(System.String,System.String[])">
  2366. <summary>
  2367. Requests a url through ajax
  2368. </summary>
  2369. <param name="url">url to fetch</param>
  2370. <param name="options">optional options in format "key, value, key, value", used in JS request object.</param>
  2371. <returns>a link tag</returns>
  2372. <remarks>All javascript option names should end with colon.</remarks>
  2373. <example>
  2374. <code>
  2375. JSHelper.AjaxRequest("/user/show/1", "onsuccess:", "$('userInfo').update(result);");
  2376. </code>
  2377. </example>
  2378. </member>
  2379. <member name="M:HttpServer.Helpers.JavascriptHelperImplementation.AjaxUpdater(System.String,System.String,System.String[])">
  2380. <summary>
  2381. Ajax requests that updates an element with
  2382. the fetched content
  2383. </summary>
  2384. <param name="url">Url to fetch content from</param>
  2385. <param name="targetId">element to update</param>
  2386. <param name="options">optional options in format "key, value, key, value", used in JS updater object.</param>
  2387. <returns>A link tag.</returns>
  2388. <remarks>All javascript option names should end with colon.</remarks>
  2389. <example>
  2390. <code>
  2391. JSHelper.AjaxUpdater("/user/show/1", "userInfo", "onsuccess:", "alert('Successful!');");
  2392. </code>
  2393. </example>
  2394. </member>
  2395. <member name="M:HttpServer.Helpers.JavascriptHelperImplementation.DialogLink(System.String,System.String,System.String[])">
  2396. <summary>
  2397. A link that pop ups a Dialog (overlay div)
  2398. </summary>
  2399. <param name="url">url to contents of dialog</param>
  2400. <param name="title">link title</param>
  2401. <returns>A "a"-tag that popups a dialog when clicked</returns>
  2402. <param name="htmlAttributes">name/value of html attributes</param>
  2403. <example>
  2404. WebHelper.DialogLink("/user/show/1", "show user", "onmouseover", "alert('booh!');");
  2405. </example>
  2406. </member>
  2407. <member name="M:HttpServer.Helpers.JavascriptHelperImplementation.CloseDialog">
  2408. <summary>
  2409. Close a javascript dialog window/div.
  2410. </summary>
  2411. <returns>javascript for closing a dialog.</returns>
  2412. <see cref="M:HttpServer.Helpers.JavascriptHelperImplementation.DialogLink(System.String,System.String,System.String[])"/>
  2413. </member>
  2414. <member name="M:HttpServer.Helpers.JavascriptHelperImplementation.CreateDialog(System.String,System.String,System.String[])">
  2415. <summary>
  2416. Creates a new modal dialog window
  2417. </summary>
  2418. <param name="url">url to open in window.</param>
  2419. <param name="title">window title (may not be supported by all js implementations)</param>
  2420. <param name="options"></param>
  2421. <returns></returns>
  2422. </member>
  2423. <member name="M:HttpServer.Helpers.Implementations.PrototypeImp.AjaxRequest(System.String,System.String[])">
  2424. <summary>
  2425. Requests a url through ajax
  2426. </summary>
  2427. <param name="url">url to fetch. Url is NOT enclosed in quotes by the implementation. You need to do that yourself.</param>
  2428. <param name="options">optional options in format "key, value, key, value", used in JS request object. All keys should end with colon.</param>
  2429. <returns>a link tag</returns>
  2430. <remarks>onclick attribute is used by this method.</remarks>
  2431. <example>
  2432. <code>
  2433. // plain text
  2434. JSHelper.AjaxRequest("'/user/show/1'");
  2435. // ajax request using this.href
  2436. string link = "&lt;a href=\"/user/call/1\" onclick=\"" + JSHelper.AjaxRequest("this.href") + "/&lt;call user&lt;/a&gt;";
  2437. </code>
  2438. </example>
  2439. </member>
  2440. <member name="M:HttpServer.Helpers.Implementations.PrototypeImp.Contains(System.Collections.Generic.IEnumerable{System.String},System.String)">
  2441. <summary>
  2442. Determins if a list of strings contains a specific value
  2443. </summary>
  2444. <param name="options">options to check in</param>
  2445. <param name="value">value to find</param>
  2446. <returns>true if value was found</returns>
  2447. <remarks>case insensitive</remarks>
  2448. </member>
  2449. <member name="M:HttpServer.Helpers.Implementations.PrototypeImp.AjaxUpdater(System.String,System.String,System.String[])">
  2450. <summary>
  2451. Ajax requests that updates an element with
  2452. the fetched content
  2453. </summary>
  2454. <param name="url">URL to fetch. URL is NOT enclosed in quotes by the implementation. You need to do that yourself.</param>
  2455. <param name="targetId">element to update</param>
  2456. <param name="options">options in format "key, value, key, value". All keys should end with colon.</param>
  2457. <returns>A link tag.</returns>
  2458. <example>
  2459. <code>
  2460. JSHelper.AjaxUpdater("'/user/show/1'", "user", "onsuccess:", "alert('hello');", "asynchronous:", "true");
  2461. </code>
  2462. </example>
  2463. </member>
  2464. <member name="M:HttpServer.Helpers.Implementations.PrototypeImp.DialogLink(System.String,System.String,System.String[])">
  2465. <summary>
  2466. A link that pop ups a Dialog (overlay div)
  2467. </summary>
  2468. <param name="url">URL to contents of dialog</param>
  2469. <param name="title">link title</param>
  2470. <param name="htmlAttributes">name, value, name, value</param>
  2471. <returns>
  2472. A "a"-tag that popups a dialog when clicked
  2473. </returns>
  2474. <remarks><para>Requires Control.Modal found here: http://livepipe.net/projects/control_modal/</para>
  2475. And the following JavaScript (load it in application.js):
  2476. <code>
  2477. Event.observe(window, 'load',
  2478. function() {
  2479. document.getElementsByClassName('modal').each(function(link){ new Control.Modal(link); });
  2480. }
  2481. );
  2482. </code>
  2483. </remarks>
  2484. <example>
  2485. WebHelper.DialogLink("/user/show/1", "show user", "onmouseover", "alert('booh!');");
  2486. </example>
  2487. </member>
  2488. <member name="M:HttpServer.Helpers.Implementations.PrototypeImp.CreateDialog(System.String,System.String,System.String[])">
  2489. <summary>
  2490. create a modal dialog (usually using DIVs)
  2491. </summary>
  2492. <param name="url">url to fetch</param>
  2493. <param name="title">dialog title</param>
  2494. <param name="options">javascript/html attributes. javascript options ends with colon ':'.</param>
  2495. <returns></returns>
  2496. </member>
  2497. <member name="M:HttpServer.Helpers.Implementations.PrototypeImp.CloseDialog">
  2498. <summary>
  2499. Close a javascript dialog window/div.
  2500. </summary>
  2501. <returns>javascript for closing a dialog.</returns>
  2502. <see cref="M:HttpServer.Helpers.Implementations.PrototypeImp.DialogLink(System.String,System.String,System.String[])"/>
  2503. </member>
  2504. <member name="M:HttpServer.Helpers.Implementations.PrototypeImp.AjaxFormOnSubmit(System.String[])">
  2505. <summary>
  2506. javascript action that should be added to the "onsubmit" event in the form tag.
  2507. </summary>
  2508. <param name="options">remember to encapsulate strings in ''</param>
  2509. <returns></returns>
  2510. <remarks>All javascript option names should end with colon.</remarks>
  2511. <example>
  2512. <code>
  2513. JSHelper.AjaxRequest("/user/show/1", "onsuccess:", "$('userInfo').update(result);");
  2514. </code>
  2515. </example>
  2516. </member>
  2517. <member name="T:HttpServer.ContentType">
  2518. <summary>
  2519. Lists content type mime types.
  2520. </summary>
  2521. </member>
  2522. <member name="F:HttpServer.ContentType.Text">
  2523. <summary>
  2524. text/plain
  2525. </summary>
  2526. </member>
  2527. <member name="F:HttpServer.ContentType.Html">
  2528. <summary>
  2529. text/haml
  2530. </summary>
  2531. </member>
  2532. <member name="F:HttpServer.ContentType.Javascript">
  2533. <summary>
  2534. content type for javascript documents = application/javascript
  2535. </summary>
  2536. <remarks>
  2537. <para>
  2538. RFC 4329 states that text/javascript have been superseeded by
  2539. application/javascript. You might still want to check browser versions
  2540. since older ones do not support application/javascript.
  2541. </para>
  2542. <para>Browser support: http://krijnhoetmer.nl/stuff/javascript/mime-types/</para>
  2543. </remarks>
  2544. </member>
  2545. <member name="F:HttpServer.ContentType.Xml">
  2546. <summary>
  2547. text/xml
  2548. </summary>
  2549. </member>
  2550. <member name="T:HttpServer.ContentTypes">
  2551. <summary>
  2552. A list of content types
  2553. </summary>
  2554. </member>
  2555. <member name="M:HttpServer.ContentTypes.#ctor(System.String)">
  2556. <summary>
  2557. </summary>
  2558. <param name="types">Semicolon separated content types.</param>
  2559. </member>
  2560. <member name="M:HttpServer.ContentTypes.GetEnumerator">
  2561. <summary>
  2562. Returns an enumerator that iterates through a collection.
  2563. </summary>
  2564. <returns>
  2565. An <see cref="T:System.Collections.IEnumerator"/> object that can be used to iterate through the collection.
  2566. </returns>
  2567. </member>
  2568. <member name="M:HttpServer.ContentTypes.Contains(System.String)">
  2569. <summary>
  2570. Searches for the specified type
  2571. </summary>
  2572. <param name="type">Can also be a part of a type (searching for "xml" would return true for "application/xml").</param>
  2573. <returns>true if type was found.</returns>
  2574. </member>
  2575. <member name="P:HttpServer.ContentTypes.First">
  2576. <summary>
  2577. Get this first content type.
  2578. </summary>
  2579. </member>
  2580. <member name="P:HttpServer.ContentTypes.Item(System.String)">
  2581. <summary>
  2582. Fetch a content type
  2583. </summary>
  2584. <param name="type">Part of type ("xml" would return "application/xml")</param>
  2585. <returns></returns>
  2586. <remarks>All content types are in lower case.</remarks>
  2587. </member>
  2588. <member name="T:HttpServer.Parser.HeaderEventArgs">
  2589. <summary>
  2590. Event arguments used when a new header have been parsed.
  2591. </summary>
  2592. </member>
  2593. <member name="M:HttpServer.Parser.HeaderEventArgs.#ctor(System.String,System.String)">
  2594. <summary>
  2595. Initializes a new instance of the <see cref="T:HttpServer.Parser.HeaderEventArgs"/> class.
  2596. </summary>
  2597. <param name="name">Name of header.</param>
  2598. <param name="value">Header value.</param>
  2599. </member>
  2600. <member name="M:HttpServer.Parser.HeaderEventArgs.#ctor">
  2601. <summary>
  2602. Initializes a new instance of the <see cref="T:HttpServer.Parser.HeaderEventArgs"/> class.
  2603. </summary>
  2604. </member>
  2605. <member name="P:HttpServer.Parser.HeaderEventArgs.Name">
  2606. <summary>
  2607. Gets or sets header name.
  2608. </summary>
  2609. </member>
  2610. <member name="P:HttpServer.Parser.HeaderEventArgs.Value">
  2611. <summary>
  2612. Gets or sets header value.
  2613. </summary>
  2614. </member>
  2615. <member name="T:HttpServer.HttpModules.ReverseProxyModule">
  2616. <summary>
  2617. A reverse proxy are used to act as a bridge between local (protected/hidden) websites
  2618. and public clients.
  2619. A typical usage is to allow web servers on non standard ports to still be available
  2620. to the public clients, or allow web servers on private ips to be available.
  2621. </summary>
  2622. </member>
  2623. <member name="M:HttpServer.HttpModules.ReverseProxyModule.#ctor(System.String,System.String)">
  2624. <summary>
  2625. </summary>
  2626. <param name="source">Base url requested from browser</param>
  2627. <param name="destination">Base url on private web server</param>
  2628. <example>
  2629. // this will return contents from http://192.168.1.128/view/jonas when client requests http://www.gauffin.com/user/view/jonas
  2630. _server.Add(new ReverseProxyModule("http://www.gauffin.com/user/", "http://192.168.1.128/");
  2631. </example>
  2632. </member>
  2633. <member name="M:HttpServer.HttpModules.ReverseProxyModule.CanHandle(System.Uri)">
  2634. <summary>
  2635. Method that determines if an url should be handled or not by the module
  2636. </summary>
  2637. <param name="uri">Url requested by the client.</param>
  2638. <returns>true if module should handle the url.</returns>
  2639. </member>
  2640. <member name="M:HttpServer.HttpModules.ReverseProxyModule.Process(HttpServer.IHttpRequest,HttpServer.IHttpResponse,HttpServer.Sessions.IHttpSession)">
  2641. <summary>
  2642. Method that process the url
  2643. </summary>
  2644. <param name="request">Information sent by the browser about the request</param>
  2645. <param name="response">Information that is being sent back to the client.</param>
  2646. <param name="session">Session used to </param>
  2647. </member>
  2648. <member name="T:HttpServer.HttpClientContext">
  2649. <summary>
  2650. Contains a connection to a browser/client.
  2651. </summary>
  2652. <remarks>
  2653. Remember to <see cref="M:HttpServer.HttpClientContext.Start"/> after you have hooked the <see cref="E:HttpServer.HttpClientContext.RequestReceived"/> event.
  2654. </remarks>
  2655. TODO: Maybe this class should be broken up into HttpClientChannel and HttpClientContext?
  2656. </member>
  2657. <member name="T:HttpServer.IHttpClientContext">
  2658. <summary>
  2659. Contains a connection to a browser/client.
  2660. </summary>
  2661. </member>
  2662. <member name="M:HttpServer.IHttpClientContext.Disconnect(System.Net.Sockets.SocketError)">
  2663. <summary>
  2664. Disconnect from client
  2665. </summary>
  2666. <param name="error">error to report in the <see cref="E:HttpServer.IHttpClientContext.Disconnected"/> event.</param>
  2667. </member>
  2668. <member name="M:HttpServer.IHttpClientContext.Respond(System.String,System.Net.HttpStatusCode,System.String,System.String,System.String)">
  2669. <summary>
  2670. Send a response.
  2671. </summary>
  2672. <param name="httpVersion">Either <see cref="F:HttpServer.HttpHelper.HTTP10"/> or <see cref="F:HttpServer.HttpHelper.HTTP11"/></param>
  2673. <param name="statusCode">HTTP status code</param>
  2674. <param name="reason">reason for the status code.</param>
  2675. <param name="body">HTML body contents, can be null or empty.</param>
  2676. <param name="contentType">A content type to return the body as, i.e. 'text/html' or 'text/plain', defaults to 'text/html' if null or empty</param>
  2677. <exception cref="T:System.ArgumentException">If <paramref name="httpVersion"/> is invalid.</exception>
  2678. </member>
  2679. <member name="M:HttpServer.IHttpClientContext.Respond(System.String,System.Net.HttpStatusCode,System.String)">
  2680. <summary>
  2681. Send a response.
  2682. </summary>
  2683. <param name="httpVersion">Either <see cref="F:HttpServer.HttpHelper.HTTP10"/> or <see cref="F:HttpServer.HttpHelper.HTTP11"/></param>
  2684. <param name="statusCode">HTTP status code</param>
  2685. <param name="reason">reason for the status code.</param>
  2686. </member>
  2687. <member name="M:HttpServer.IHttpClientContext.Respond(System.String)">
  2688. <summary>
  2689. Send a response.
  2690. </summary>
  2691. <exception cref="T:System.ArgumentNullException"></exception>
  2692. </member>
  2693. <member name="M:HttpServer.IHttpClientContext.Send(System.Byte[])">
  2694. <summary>
  2695. send a whole buffer
  2696. </summary>
  2697. <param name="buffer">buffer to send</param>
  2698. <exception cref="T:System.ArgumentNullException"></exception>
  2699. </member>
  2700. <member name="M:HttpServer.IHttpClientContext.Send(System.Byte[],System.Int32,System.Int32)">
  2701. <summary>
  2702. Send data using the stream
  2703. </summary>
  2704. <param name="buffer">Contains data to send</param>
  2705. <param name="offset">Start position in buffer</param>
  2706. <param name="size">number of bytes to send</param>
  2707. <exception cref="T:System.ArgumentNullException"></exception>
  2708. <exception cref="T:System.ArgumentOutOfRangeException"></exception>
  2709. </member>
  2710. <member name="M:HttpServer.IHttpClientContext.Close">
  2711. <summary>
  2712. Closes the streams and disposes of the unmanaged resources
  2713. </summary>
  2714. </member>
  2715. <member name="P:HttpServer.IHttpClientContext.Secured">
  2716. <summary>
  2717. Using SSL or other encryption method.
  2718. </summary>
  2719. </member>
  2720. <member name="P:HttpServer.IHttpClientContext.IsSecured">
  2721. <summary>
  2722. Using SSL or other encryption method.
  2723. </summary>
  2724. </member>
  2725. <member name="E:HttpServer.IHttpClientContext.Disconnected">
  2726. <summary>
  2727. The context have been disconnected.
  2728. </summary>
  2729. <remarks>
  2730. Event can be used to clean up a context, or to reuse it.
  2731. </remarks>
  2732. </member>
  2733. <member name="E:HttpServer.IHttpClientContext.RequestReceived">
  2734. <summary>
  2735. A request have been received in the context.
  2736. </summary>
  2737. </member>
  2738. <member name="M:HttpServer.HttpClientContext.#ctor(System.Boolean,System.Net.IPEndPoint,System.IO.Stream,HttpServer.IRequestParserFactory,System.Int32,System.Net.Sockets.Socket)">
  2739. <summary>
  2740. Initializes a new instance of the <see cref="T:HttpServer.HttpClientContext"/> class.
  2741. </summary>
  2742. <param name="secured">true if the connection is secured (SSL/TLS)</param>
  2743. <param name="remoteEndPoint">client that connected.</param>
  2744. <param name="stream">Stream used for communication</param>
  2745. <param name="parserFactory">Used to create a <see cref="T:HttpServer.IHttpRequestParser"/>.</param>
  2746. <param name="bufferSize">Size of buffer to use when reading data. Must be at least 4096 bytes.</param>
  2747. <exception cref="T:System.Net.Sockets.SocketException">If <see cref="M:System.Net.Sockets.Socket.BeginReceive(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.AsyncCallback,System.Object)"/> fails</exception>
  2748. <exception cref="T:System.ArgumentException">Stream must be writable and readable.</exception>
  2749. </member>
  2750. <member name="M:HttpServer.HttpClientContext.OnBodyBytesReceived(System.Object,HttpServer.Parser.BodyEventArgs)">
  2751. <summary>
  2752. Process incoming body bytes.
  2753. </summary>
  2754. <param name="sender"><see cref="T:HttpServer.IHttpRequestParser"/></param>
  2755. <param name="e">Bytes</param>
  2756. </member>
  2757. <member name="M:HttpServer.HttpClientContext.OnHeaderReceived(System.Object,HttpServer.Parser.HeaderEventArgs)">
  2758. <summary>
  2759. </summary>
  2760. <param name="sender"></param>
  2761. <param name="e"></param>
  2762. </member>
  2763. <member name="M:HttpServer.HttpClientContext.Start">
  2764. <summary>
  2765. Start reading content.
  2766. </summary>
  2767. <remarks>
  2768. Make sure to call base.Start() if you override this method.
  2769. </remarks>
  2770. </member>
  2771. <member name="M:HttpServer.HttpClientContext.Cleanup">
  2772. <summary>
  2773. Clean up context.
  2774. </summary>
  2775. <remarks>
  2776. Make sure to call base.Cleanup() if you override the method.
  2777. </remarks>
  2778. </member>
  2779. <member name="M:HttpServer.HttpClientContext.Disconnect(System.Net.Sockets.SocketError)">
  2780. <summary>
  2781. Disconnect from client
  2782. </summary>
  2783. <param name="error">error to report in the <see cref="E:HttpServer.HttpClientContext.Disconnected"/> event.</param>
  2784. </member>
  2785. <member name="M:HttpServer.HttpClientContext.OnReceive(System.IAsyncResult)">
  2786. <exception cref="T:HttpServer.Exceptions.BadRequestException"><c>BadRequestException</c>.</exception>
  2787. </member>
  2788. <member name="M:HttpServer.HttpClientContext.Respond(System.String,System.Net.HttpStatusCode,System.String,System.String,System.String)">
  2789. <summary>
  2790. Send a response.
  2791. </summary>
  2792. <param name="httpVersion">Either <see cref="F:HttpServer.HttpHelper.HTTP10"/> or <see cref="F:HttpServer.HttpHelper.HTTP11"/></param>
  2793. <param name="statusCode">HTTP status code</param>
  2794. <param name="reason">reason for the status code.</param>
  2795. <param name="body">HTML body contents, can be null or empty.</param>
  2796. <param name="contentType">A content type to return the body as, i.e. 'text/html' or 'text/plain', defaults to 'text/html' if null or empty</param>
  2797. <exception cref="T:System.ArgumentException">If <paramref name="httpVersion"/> is invalid.</exception>
  2798. </member>
  2799. <member name="M:HttpServer.HttpClientContext.Respond(System.String,System.Net.HttpStatusCode,System.String)">
  2800. <summary>
  2801. Send a response.
  2802. </summary>
  2803. <param name="httpVersion">Either <see cref="F:HttpServer.HttpHelper.HTTP10"/> or <see cref="F:HttpServer.HttpHelper.HTTP11"/></param>
  2804. <param name="statusCode">HTTP status code</param>
  2805. <param name="reason">reason for the status code.</param>
  2806. </member>
  2807. <member name="M:HttpServer.HttpClientContext.Respond(System.String)">
  2808. <summary>
  2809. Send a response.
  2810. </summary>
  2811. <exception cref="T:System.ArgumentNullException"></exception>
  2812. </member>
  2813. <member name="M:HttpServer.HttpClientContext.Send(System.Byte[])">
  2814. <summary>
  2815. send a whole buffer
  2816. </summary>
  2817. <param name="buffer">buffer to send</param>
  2818. <exception cref="T:System.ArgumentNullException"></exception>
  2819. </member>
  2820. <member name="M:HttpServer.HttpClientContext.Send(System.Byte[],System.Int32,System.Int32)">
  2821. <summary>
  2822. Send data using the stream
  2823. </summary>
  2824. <param name="buffer">Contains data to send</param>
  2825. <param name="offset">Start position in buffer</param>
  2826. <param name="size">number of bytes to send</param>
  2827. <exception cref="T:System.ArgumentNullException"></exception>
  2828. <exception cref="T:System.ArgumentOutOfRangeException"></exception>
  2829. </member>
  2830. <member name="E:HttpServer.HttpClientContext.Cleaned">
  2831. <summary>
  2832. This context have been cleaned, which means that it can be reused.
  2833. </summary>
  2834. </member>
  2835. <member name="E:HttpServer.HttpClientContext.Started">
  2836. <summary>
  2837. Context have been started (a new client have connected)
  2838. </summary>
  2839. </member>
  2840. <member name="P:HttpServer.HttpClientContext.CurrentRequest">
  2841. <summary>
  2842. Overload to specify own type.
  2843. </summary>
  2844. <remarks>
  2845. Must be specified before the context is being used.
  2846. </remarks>
  2847. </member>
  2848. <member name="P:HttpServer.HttpClientContext.Secured">
  2849. <summary>
  2850. Using SSL or other encryption method.
  2851. </summary>
  2852. </member>
  2853. <member name="P:HttpServer.HttpClientContext.IsSecured">
  2854. <summary>
  2855. Using SSL or other encryption method.
  2856. </summary>
  2857. </member>
  2858. <member name="P:HttpServer.HttpClientContext.LogWriter">
  2859. <summary>
  2860. Specify which logger to use.
  2861. </summary>
  2862. </member>
  2863. <member name="P:HttpServer.HttpClientContext.Stream">
  2864. <summary>
  2865. Gets or sets the network stream.
  2866. </summary>
  2867. </member>
  2868. <member name="P:HttpServer.HttpClientContext.RemoteAddress">
  2869. <summary>
  2870. Gets or sets IP address that the client connected from.
  2871. </summary>
  2872. </member>
  2873. <member name="P:HttpServer.HttpClientContext.RemotePort">
  2874. <summary>
  2875. Gets or sets port that the client connected from.
  2876. </summary>
  2877. </member>
  2878. <member name="E:HttpServer.HttpClientContext.Disconnected">
  2879. <summary>
  2880. The context have been disconnected.
  2881. </summary>
  2882. <remarks>
  2883. Event can be used to clean up a context, or to reuse it.
  2884. </remarks>
  2885. </member>
  2886. <member name="E:HttpServer.HttpClientContext.RequestReceived">
  2887. <summary>
  2888. A request have been received in the context.
  2889. </summary>
  2890. </member>
  2891. <member name="T:HttpServer.Helpers.XmlHelper">
  2892. <summary>
  2893. Helpers to make XML handling easier
  2894. </summary>
  2895. </member>
  2896. <member name="M:HttpServer.Helpers.XmlHelper.Serialize(System.Object)">
  2897. <summary>
  2898. Serializes object to XML.
  2899. </summary>
  2900. <param name="value">object to serialize.</param>
  2901. <returns>XML</returns>
  2902. <remarks>
  2903. Removes name spaces and adds indentation
  2904. </remarks>
  2905. </member>
  2906. <member name="M:HttpServer.Helpers.XmlHelper.Deserialize``1(System.String)">
  2907. <summary>
  2908. Create an object from a XML string
  2909. </summary>
  2910. <typeparam name="T">Type of object</typeparam>
  2911. <param name="xml">XML string</param>
  2912. <returns>object</returns>
  2913. </member>
  2914. <member name="T:HttpServer.FormDecoders.UrlDecoder">
  2915. <summary>
  2916. Can handle application/x-www-form-urlencoded
  2917. </summary>
  2918. </member>
  2919. <member name="M:HttpServer.FormDecoders.UrlDecoder.Decode(System.IO.Stream,System.String,System.Text.Encoding)">
  2920. <summary>
  2921. </summary>
  2922. <param name="stream">Stream containing the content</param>
  2923. <param name="contentType">Content type (with any additional info like boundry). Content type is always supplied in lower case</param>
  2924. <param name="encoding">Stream encoding</param>
  2925. <returns>
  2926. A HTTP form, or null if content could not be parsed.
  2927. </returns>
  2928. <exception cref="T:System.IO.InvalidDataException">If contents in the stream is not valid input data.</exception>
  2929. </member>
  2930. <member name="M:HttpServer.FormDecoders.UrlDecoder.CanParse(System.String)">
  2931. <summary>
  2932. Checks if the decoder can handle the mime type
  2933. </summary>
  2934. <param name="contentType">Content type (with any additional info like boundry). Content type is always supplied in lower case.</param>
  2935. <returns>True if the decoder can parse the specified content type</returns>
  2936. </member>
  2937. <member name="T:HttpServer.Exceptions.ForbiddenException">
  2938. <summary>
  2939. The server understood the request, but is refusing to fulfill it.
  2940. Authorization will not help and the request SHOULD NOT be repeated.
  2941. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled,
  2942. it SHOULD describe the reason for the refusal in the entity. If the server does not wish to make this information
  2943. available to the client, the status code 404 (Not Found) can be used instead.
  2944. Text taken from: http://www.submissionchamber.com/help-guides/error-codes.php
  2945. </summary>
  2946. </member>
  2947. <member name="M:HttpServer.Exceptions.ForbiddenException.#ctor(System.String)">
  2948. <summary>
  2949. Initializes a new instance of the <see cref="T:HttpServer.Exceptions.ForbiddenException"/> class.
  2950. </summary>
  2951. <param name="errorMsg">error message</param>
  2952. </member>
  2953. <member name="T:HttpServer.ClientAcceptedEventArgs">
  2954. <summary>
  2955. Invoked when a client have been accepted by the <see cref="T:HttpServer.HttpListener"/>
  2956. </summary>
  2957. <remarks>
  2958. Can be used to revoke incoming connections
  2959. </remarks>
  2960. </member>
  2961. <member name="M:HttpServer.ClientAcceptedEventArgs.#ctor(System.Net.Sockets.Socket)">
  2962. <summary>
  2963. Initializes a new instance of the <see cref="T:HttpServer.ClientAcceptedEventArgs"/> class.
  2964. </summary>
  2965. <param name="socket">The socket.</param>
  2966. </member>
  2967. <member name="M:HttpServer.ClientAcceptedEventArgs.Revoke">
  2968. <summary>
  2969. Client may not be handled.
  2970. </summary>
  2971. </member>
  2972. <member name="P:HttpServer.ClientAcceptedEventArgs.Socket">
  2973. <summary>
  2974. Accepted socket.
  2975. </summary>
  2976. </member>
  2977. <member name="P:HttpServer.ClientAcceptedEventArgs.Revoked">
  2978. <summary>
  2979. Client should be revoked.
  2980. </summary>
  2981. </member>
  2982. <member name="T:HttpServer.Helpers.ResourceManager">
  2983. <summary>Class to handle loading of resource files</summary>
  2984. </member>
  2985. <member name="M:HttpServer.Helpers.ResourceManager.#ctor">
  2986. <summary>
  2987. Initializes a new instance of the <see cref="T:HttpServer.Helpers.ResourceManager"/> class.
  2988. </summary>
  2989. </member>
  2990. <member name="M:HttpServer.Helpers.ResourceManager.#ctor(HttpServer.ILogWriter)">
  2991. <summary>
  2992. Initializes a new instance of the <see cref="T:HttpServer.Helpers.ResourceManager"/> class.
  2993. </summary>
  2994. <param name="writer">logger.</param>
  2995. </member>
  2996. <member name="M:HttpServer.Helpers.ResourceManager.LoadResources(System.String,System.Reflection.Assembly,System.String)">
  2997. <summary>
  2998. Loads resources from a namespace in the given assembly to an URI
  2999. </summary>
  3000. <param name="toUri">The URI to map the resources to</param>
  3001. <param name="fromAssembly">The assembly in which the resources reside</param>
  3002. <param name="fromNamespace">The namespace from which to load the resources</param>
  3003. <usage>
  3004. <code>
  3005. resourceLoader.LoadResources("/user/", typeof(User).Assembly, "MyLib.Models.User.Views");
  3006. </code>
  3007. Will make the resource MyLib.Models.User.Views.list.Haml accessible via /user/list.haml or /user/list/
  3008. </usage>
  3009. <returns>The amount of loaded files, giving you the possibility of making sure the resources needed gets loaded</returns>
  3010. <exception cref="T:System.InvalidOperationException">If a resource has already been mapped to an uri</exception>
  3011. </member>
  3012. <member name="M:HttpServer.Helpers.ResourceManager.GetResourceStream(System.String)">
  3013. <summary>
  3014. Retrieves a stream for the specified resource path if loaded otherwise null
  3015. </summary>
  3016. <param name="path">Path to the resource to retrieve a stream for</param>
  3017. <returns>A stream or null if the resource couldn't be found</returns>
  3018. </member>
  3019. <member name="M:HttpServer.Helpers.ResourceManager.GetFiles(System.String)">
  3020. <summary>
  3021. Fetch all files from the resource that matches the specified arguments.
  3022. </summary>
  3023. <param name="path">The path to the resource to extract</param>
  3024. <returns>
  3025. a list of files if found; or an empty array if no files are found.
  3026. </returns>
  3027. <exception cref="T:System.ArgumentException">Search path must end with an asterisk for finding arbitrary files</exception>
  3028. </member>
  3029. <member name="M:HttpServer.Helpers.ResourceManager.GetFiles(System.String,System.String)">
  3030. <summary>
  3031. Fetch all files from the resource that matches the specified arguments.
  3032. </summary>
  3033. <param name="path">Where the file should reside.</param>
  3034. <param name="filename">Files to check</param>
  3035. <returns>
  3036. a list of files if found; or an empty array if no files are found.
  3037. </returns>
  3038. </member>
  3039. <member name="M:HttpServer.Helpers.ResourceManager.ContainsResource(System.String)">
  3040. <summary>
  3041. Returns whether or not the loader has an instance of the file requested
  3042. </summary>
  3043. <param name="filename">The name of the template/file</param>
  3044. <returns>True if the loader can provide the file</returns>
  3045. </member>
  3046. <member name="M:HttpServer.FormDecoders.HttpMultipart.ReadLine">
  3047. <summary>
  3048. </summary>
  3049. <returns></returns>
  3050. <exception cref="T:System.ArgumentOutOfRangeException"></exception>
  3051. <exception cref="T:System.ObjectDisposedException"></exception>
  3052. </member>
  3053. <member name="T:HttpServer.FormDecoders.HttpMultipart.Element">
  3054. <summary>Represents a field in a multipart form</summary>
  3055. </member>
  3056. <member name="T:HttpServer.FormDecoders.FormDecoderProvider">
  3057. <summary>
  3058. This provider is used to let us implement any type of form decoding we want without
  3059. having to rewrite anything else in the server.
  3060. </summary>
  3061. </member>
  3062. <member name="M:HttpServer.FormDecoders.FormDecoderProvider.Decode(System.String,System.IO.Stream,System.Text.Encoding)">
  3063. <summary>
  3064. </summary>
  3065. <param name="contentType">Should contain boundary and type, as in: multipart/form-data; boundary=---------------------------230051238959</param>
  3066. <param name="stream">Stream containing form data.</param>
  3067. <param name="encoding">Encoding used when decoding the stream</param>
  3068. <returns><see cref="F:HttpServer.HttpInput.Empty"/> if no parser was found.</returns>
  3069. <exception cref="T:System.ArgumentException">If stream is null or not readable.</exception>
  3070. <exception cref="T:System.IO.InvalidDataException">If stream contents cannot be decoded properly.</exception>
  3071. </member>
  3072. <member name="M:HttpServer.FormDecoders.FormDecoderProvider.Add(HttpServer.FormDecoders.IFormDecoder)">
  3073. <summary>
  3074. Add a decoder.
  3075. </summary>
  3076. <param name="decoder"></param>
  3077. <exception cref="T:System.ArgumentNullException"></exception>
  3078. </member>
  3079. <member name="P:HttpServer.FormDecoders.FormDecoderProvider.Count">
  3080. <summary>
  3081. Number of added decoders.
  3082. </summary>
  3083. </member>
  3084. <member name="P:HttpServer.FormDecoders.FormDecoderProvider.Decoders">
  3085. <summary>
  3086. Use with care.
  3087. </summary>
  3088. </member>
  3089. <member name="P:HttpServer.FormDecoders.FormDecoderProvider.DefaultDecoder">
  3090. <summary>
  3091. Decoder used for unknown content types.
  3092. </summary>
  3093. </member>
  3094. <member name="T:HttpServer.RealmHandler">
  3095. <summary>
  3096. Delegate used to find a realm/domain.
  3097. </summary>
  3098. <param name="domain"></param>
  3099. <returns></returns>
  3100. <remarks>
  3101. Realms are used during HTTP Authentication
  3102. </remarks>
  3103. <seealso cref="T:HttpServer.Authentication.AuthenticationModule"/>
  3104. <seealso cref="T:HttpServer.Authentication.AuthenticationHandler"/>
  3105. </member>
  3106. <member name="T:HttpServer.HttpServer">
  3107. <summary>
  3108. A complete HTTP server, you need to add a module to it to be able to handle incoming requests.
  3109. </summary>
  3110. <example>
  3111. <code>
  3112. // this small example will add two web site modules, thus handling
  3113. // two different sites. In reality you should add Controller modules or something
  3114. // two the website modules to be able to handle different requests.
  3115. HttpServer server = new HttpServer();
  3116. server.Add(new WebSiteModule("www.gauffin.com", "Gauffin Telecom AB"));
  3117. server.Add(new WebSiteModule("www.vapadi.se", "Remote PBX"));
  3118. // start regular http
  3119. server.Start(IPAddress.Any, 80);
  3120. // start https
  3121. server.Start(IPAddress.Any, 443, myCertificate);
  3122. </code>
  3123. </example>
  3124. <seealso cref="T:HttpServer.HttpModules.HttpModule"/>
  3125. <seealso cref="T:HttpServer.HttpModules.FileModule"/>
  3126. <seealso cref="T:HttpServer.HttpListener"/>
  3127. </member>
  3128. <member name="M:HttpServer.HttpServer.#ctor(HttpServer.IComponentProvider)">
  3129. <summary>
  3130. Initializes a new instance of the <see cref="T:HttpServer.HttpServer"/> class.
  3131. </summary>
  3132. <param name="provider">Used to get all components used in the server..</param>
  3133. </member>
  3134. <member name="M:HttpServer.HttpServer.#ctor">
  3135. <summary>
  3136. Initializes a new instance of the <see cref="T:HttpServer.HttpServer"/> class.
  3137. </summary>
  3138. </member>
  3139. <member name="M:HttpServer.HttpServer.#ctor(HttpServer.FormDecoders.FormDecoderProvider)">
  3140. <summary>
  3141. Initializes a new instance of the <see cref="T:HttpServer.HttpServer"/> class.
  3142. </summary>
  3143. <param name="decoderProvider">Form decoders are used to convert different types of posted data to the <see cref="T:HttpServer.HttpInput"/> object types.</param>
  3144. <seealso cref="T:HttpServer.FormDecoders.IFormDecoder"/>
  3145. <seealso cref="P:HttpServer.HttpServer.FormDecoderProviders"/>
  3146. </member>
  3147. <member name="M:HttpServer.HttpServer.#ctor(HttpServer.Sessions.IHttpSessionStore)">
  3148. <summary>
  3149. Initializes a new instance of the <see cref="T:HttpServer.HttpServer"/> class.
  3150. </summary>
  3151. <param name="sessionStore">A session store is used to save and retrieve sessions</param>
  3152. <seealso cref="T:HttpServer.Sessions.IHttpSessionStore"/>
  3153. </member>
  3154. <member name="M:HttpServer.HttpServer.#ctor(HttpServer.ILogWriter)">
  3155. <summary>
  3156. Initializes a new instance of the <see cref="T:HttpServer.HttpServer"/> class.
  3157. </summary>
  3158. <param name="logWriter">The log writer.</param>
  3159. <seealso cref="P:HttpServer.HttpServer.LogWriter"/>
  3160. </member>
  3161. <member name="M:HttpServer.HttpServer.#ctor(HttpServer.FormDecoders.FormDecoderProvider,HttpServer.ILogWriter)">
  3162. <summary>
  3163. Initializes a new instance of the <see cref="T:HttpServer.HttpServer"/> class.
  3164. </summary>
  3165. <param name="decoderProvider">Form decoders are used to convert different types of posted data to the <see cref="T:HttpServer.HttpInput"/> object types.</param>
  3166. <param name="logWriter">The log writer.</param>
  3167. <seealso cref="T:HttpServer.FormDecoders.IFormDecoder"/>
  3168. <seealso cref="P:HttpServer.HttpServer.FormDecoderProviders"/>
  3169. <seealso cref="P:HttpServer.HttpServer.LogWriter"/>
  3170. </member>
  3171. <member name="M:HttpServer.HttpServer.#ctor(HttpServer.FormDecoders.FormDecoderProvider,HttpServer.Sessions.IHttpSessionStore,HttpServer.ILogWriter)">
  3172. <summary>
  3173. Initializes a new instance of the <see cref="T:HttpServer.HttpServer"/> class.
  3174. </summary>
  3175. <param name="decoderProvider">Form decoders are used to convert different types of posted data to the <see cref="T:HttpServer.HttpInput"/> object types.</param>
  3176. <param name="sessionStore">A session store is used to save and retrieve sessions</param>
  3177. <param name="logWriter">The log writer.</param>
  3178. <seealso cref="T:HttpServer.FormDecoders.IFormDecoder"/>
  3179. <seealso cref="P:HttpServer.HttpServer.FormDecoderProviders"/>
  3180. <seealso cref="P:HttpServer.HttpServer.LogWriter"/>
  3181. <seealso cref="T:HttpServer.Sessions.IHttpSessionStore"/>
  3182. </member>
  3183. <member name="M:HttpServer.HttpServer.Add(HttpServer.Rules.IRule)">
  3184. <summary>
  3185. Adds the specified rule.
  3186. </summary>
  3187. <param name="rule">The rule.</param>
  3188. </member>
  3189. <member name="M:HttpServer.HttpServer.Add(HttpServer.HttpModules.HttpModule)">
  3190. <summary>
  3191. Add a <see cref="T:HttpServer.HttpModules.HttpModule"/> to the server.
  3192. </summary>
  3193. <param name="module">mode to add</param>
  3194. </member>
  3195. <member name="M:HttpServer.HttpServer.DecodeBody(HttpServer.IHttpRequest)">
  3196. <summary>
  3197. Decodes the request body.
  3198. </summary>
  3199. <param name="request">The request.</param>
  3200. <exception cref="T:HttpServer.Exceptions.InternalServerException">Failed to decode form data.</exception>
  3201. </member>
  3202. <member name="M:HttpServer.HttpServer.ErrorPage(HttpServer.IHttpResponse,System.Net.HttpStatusCode,System.String)">
  3203. <summary>
  3204. Generate a HTTP error page (that will be added to the response body).
  3205. response status code is also set.
  3206. </summary>
  3207. <param name="response">Response that the page will be generated in.</param>
  3208. <param name="error"><see cref="T:System.Net.HttpStatusCode"/>.</param>
  3209. <param name="body">response body contents.</param>
  3210. </member>
  3211. <member name="M:HttpServer.HttpServer.ErrorPage(HttpServer.IHttpResponse,HttpServer.Exceptions.HttpException)">
  3212. <summary>
  3213. Generate a HTTP error page (that will be added to the response body).
  3214. response status code is also set.
  3215. </summary>
  3216. <param name="response">Response that the page will be generated in.</param>
  3217. <param name="err">exception.</param>
  3218. </member>
  3219. <member name="M:HttpServer.HttpServer.GetRealm(HttpServer.IHttpRequest)">
  3220. <summary>
  3221. Realms are used by the <see cref="T:HttpServer.Authentication.AuthenticationModule"/>s.
  3222. </summary>
  3223. <param name="request">HTTP request</param>
  3224. <returns>domain/realm.</returns>
  3225. </member>
  3226. <member name="M:HttpServer.HttpServer.HandleRequest(HttpServer.IHttpClientContext,HttpServer.IHttpRequest,HttpServer.IHttpResponse,HttpServer.Sessions.IHttpSession)">
  3227. <summary>
  3228. Process an incoming request.
  3229. </summary>
  3230. <param name="context">connection to client</param>
  3231. <param name="request">request information</param>
  3232. <param name="response">response that should be filled</param>
  3233. <param name="session">session information</param>
  3234. </member>
  3235. <member name="M:HttpServer.HttpServer.OnClientDisconnected(HttpServer.IHttpClientContext,System.Net.Sockets.SocketError)">
  3236. <summary>
  3237. Can be overloaded to implement stuff when a client have been connected.
  3238. </summary>
  3239. <remarks>
  3240. Default implementation does nothing.
  3241. </remarks>
  3242. <param name="client">client that disconnected</param>
  3243. <param name="error">disconnect reason</param>
  3244. </member>
  3245. <member name="M:HttpServer.HttpServer.ProcessAuthentication(HttpServer.IHttpRequest,HttpServer.IHttpResponse,HttpServer.Sessions.IHttpSession)">
  3246. <summary>
  3247. Handle authentication
  3248. </summary>
  3249. <param name="request"></param>
  3250. <param name="response"></param>
  3251. <param name="session"></param>
  3252. <returns>true if request can be handled; false if not.</returns>
  3253. <exception cref="T:HttpServer.Exceptions.BadRequestException">Invalid authorization header</exception>
  3254. </member>
  3255. <member name="M:HttpServer.HttpServer.RequestAuthentication(HttpServer.Authentication.AuthenticationModule,HttpServer.IHttpRequest,HttpServer.IHttpResponse)">
  3256. <summary>
  3257. Will request authentication.
  3258. </summary>
  3259. <remarks>
  3260. Sends respond to client, nothing else can be done with the response after this.
  3261. </remarks>
  3262. <param name="mod"></param>
  3263. <param name="request"></param>
  3264. <param name="response"></param>
  3265. </member>
  3266. <member name="M:HttpServer.HttpServer.OnRequest(System.Object,HttpServer.RequestEventArgs)">
  3267. <summary>
  3268. Received from a <see cref="T:HttpServer.IHttpClientContext"/> when a request have been parsed successfully.
  3269. </summary>
  3270. <param name="source"><see cref="T:HttpServer.IHttpClientContext"/> that received the request.</param>
  3271. <param name="args">The request.</param>
  3272. </member>
  3273. <member name="M:HttpServer.HttpServer.ProcessRequestWrapper(HttpServer.IHttpClientContext,HttpServer.IHttpRequest)">
  3274. <summary>
  3275. To be able to track request count.
  3276. </summary>
  3277. <param name="context"></param>
  3278. <param name="request"></param>
  3279. </member>
  3280. <member name="M:HttpServer.HttpServer.Start(System.Net.IPAddress,System.Int32)">
  3281. <summary>
  3282. Start the web server using regular HTTP.
  3283. </summary>
  3284. <param name="address">IP Address to listen on, use <c>IpAddress.Any </c>to accept connections on all IP addresses/network cards.</param>
  3285. <param name="port">Port to listen on. 80 can be a good idea =)</param>
  3286. <exception cref="T:System.ArgumentNullException"><c>address</c> is null.</exception>
  3287. <exception cref="T:System.ArgumentException">Port must be a positive number.</exception>
  3288. </member>
  3289. <member name="M:HttpServer.HttpServer.Start(System.Net.IPAddress,System.Int32,System.Security.Cryptography.X509Certificates.X509Certificate)">
  3290. <summary>
  3291. Accept secure connections.
  3292. </summary>
  3293. <param name="address">IP Address to listen on, use <see cref="F:System.Net.IPAddress.Any"/> to accept connections on all IP Addresses / network cards.</param>
  3294. <param name="port">Port to listen on. 80 can be a good idea =)</param>
  3295. <param name="certificate">Certificate to use</param>
  3296. <exception cref="T:System.ArgumentNullException"><c>address</c> is null.</exception>
  3297. <exception cref="T:System.ArgumentException">Port must be a positive number.</exception>
  3298. </member>
  3299. <member name="M:HttpServer.HttpServer.Stop">
  3300. <summary>
  3301. shut down the server and listeners
  3302. </summary>
  3303. </member>
  3304. <member name="M:HttpServer.HttpServer.WriteLog(HttpServer.LogPrio,System.String)">
  3305. <summary>
  3306. write an entry to the log file
  3307. </summary>
  3308. <param name="prio">importance of the message</param>
  3309. <param name="message">log message</param>
  3310. </member>
  3311. <member name="M:HttpServer.HttpServer.WriteLog(System.Object,HttpServer.LogPrio,System.String)">
  3312. <summary>
  3313. write an entry to the log file
  3314. </summary>
  3315. <param name="source">object that wrote the message</param>
  3316. <param name="prio">importance of the message</param>
  3317. <param name="message">log message</param>
  3318. </member>
  3319. <member name="P:HttpServer.HttpServer.Current">
  3320. <summary>
  3321. Server that is handling the current request.
  3322. </summary>
  3323. <remarks>
  3324. Will be set as soon as a request arrives to the <see cref="T:HttpServer.HttpServer"/> object.
  3325. </remarks>
  3326. </member>
  3327. <member name="P:HttpServer.HttpServer.AuthenticationModules">
  3328. <summary>
  3329. Modules used for authentication. The module that is is added first is used as
  3330. the default authentication module.
  3331. </summary>
  3332. <remarks>Use the corresponding property
  3333. in the <see cref="T:HttpServer.HttpModules.WebSiteModule"/> if you are using multiple websites.</remarks>
  3334. </member>
  3335. <member name="P:HttpServer.HttpServer.FormDecoderProviders">
  3336. <summary>
  3337. Form decoder providers are used to decode request body (which normally contains form data).
  3338. </summary>
  3339. </member>
  3340. <member name="P:HttpServer.HttpServer.ServerName">
  3341. <summary>
  3342. Server name sent in HTTP responses.
  3343. </summary>
  3344. <remarks>
  3345. Do NOT include version in name, since it makes it
  3346. easier for hackers.
  3347. </remarks>
  3348. </member>
  3349. <member name="P:HttpServer.HttpServer.SessionCookieName">
  3350. <summary>
  3351. Name of cookie where session id is stored.
  3352. </summary>
  3353. </member>
  3354. <member name="P:HttpServer.HttpServer.LogWriter">
  3355. <summary>
  3356. Specified where logging should go.
  3357. </summary>
  3358. <seealso cref="T:HttpServer.NullLogWriter"/>
  3359. <seealso cref="T:HttpServer.ConsoleLogWriter"/>
  3360. <seealso cref="P:HttpServer.HttpServer.LogWriter"/>
  3361. </member>
  3362. <member name="P:HttpServer.HttpServer.BackLog">
  3363. <summary>
  3364. Number of connections that can wait to be accepted by the server.
  3365. </summary>
  3366. <remarks>Default is 10.</remarks>
  3367. </member>
  3368. <member name="P:HttpServer.HttpServer.MaxRequestCount">
  3369. <summary>
  3370. Gets or sets maximum number of allowed simultaneous requests.
  3371. </summary>
  3372. <remarks>
  3373. <para>
  3374. This property is useful in busy systems. The HTTP server
  3375. will start queuing new requests if this limit is hit, instead
  3376. of trying to process all incoming requests directly.
  3377. </para>
  3378. <para>
  3379. The default number if allowed simultaneous requests are 10.
  3380. </para>
  3381. </remarks>
  3382. </member>
  3383. <member name="P:HttpServer.HttpServer.MaxQueueSize">
  3384. <summary>
  3385. Gets or sets maximum number of requests queuing to be handled.
  3386. </summary>
  3387. <remarks>
  3388. <para>
  3389. The WebServer will start turning requests away if response code
  3390. <see cref="F:System.Net.HttpStatusCode.ServiceUnavailable"/> to indicate that the server
  3391. is too busy to be able to handle the request.
  3392. </para>
  3393. </remarks>
  3394. </member>
  3395. <member name="E:HttpServer.HttpServer.RealmWanted">
  3396. <summary>
  3397. Realms are used during HTTP authentication.
  3398. Default realm is same as server name.
  3399. </summary>
  3400. </member>
  3401. <member name="E:HttpServer.HttpServer.ExceptionThrown">
  3402. <summary>
  3403. Let's to receive unhandled exceptions from the threads.
  3404. </summary>
  3405. <remarks>
  3406. Exceptions will be thrown during debug mode if this event is not used,
  3407. exceptions will be printed to console and suppressed during release mode.
  3408. </remarks>
  3409. </member>
  3410. <member name="T:HttpServer.FormDecoders.MultipartDecoder">
  3411. <summary>
  3412. </summary>
  3413. <remarks>
  3414. http://www.faqs.org/rfcs/rfc1867.html
  3415. </remarks>
  3416. </member>
  3417. <member name="F:HttpServer.FormDecoders.MultipartDecoder.MimeType">
  3418. <summary>
  3419. multipart/form-data
  3420. </summary>
  3421. </member>
  3422. <member name="F:HttpServer.FormDecoders.MultipartDecoder.FormData">
  3423. <summary>
  3424. form-data
  3425. </summary>
  3426. </member>
  3427. <member name="M:HttpServer.FormDecoders.MultipartDecoder.Decode(System.IO.Stream,System.String,System.Text.Encoding)">
  3428. <summary>
  3429. </summary>
  3430. <param name="stream">Stream containing the content</param>
  3431. <param name="contentType">Content type (with any additional info like boundry). Content type is always supplied in lower case</param>
  3432. <param name="encoding">Stream enconding</param>
  3433. <returns>A http form, or null if content could not be parsed.</returns>
  3434. <exception cref="T:System.IO.InvalidDataException">If contents in the stream is not valid input data.</exception>
  3435. <exception cref="T:System.ArgumentNullException">If any parameter is null</exception>
  3436. </member>
  3437. <member name="M:HttpServer.FormDecoders.MultipartDecoder.CanParse(System.String)">
  3438. <summary>
  3439. Checks if the decoder can handle the mime type
  3440. </summary>
  3441. <param name="contentType">Content type (with any additional info like boundry). Content type is always supplied in lower case.</param>
  3442. <returns>True if the decoder can parse the specified content type</returns>
  3443. </member>
  3444. <member name="M:HttpServer.ComponentProvider.AddInstance``1(System.Object)">
  3445. <summary>
  3446. Add a component instance
  3447. </summary>
  3448. <typeparam name="T">Interface type</typeparam>
  3449. <param name="instance">Instance to add</param>
  3450. </member>
  3451. <member name="M:HttpServer.ComponentProvider.Get``1">
  3452. <summary>
  3453. Get a component.
  3454. </summary>
  3455. <typeparam name="T">Interface type</typeparam>
  3456. <returns>Component if registered, otherwise null.</returns>
  3457. <remarks>
  3458. Component will get created if needed.
  3459. </remarks>
  3460. </member>
  3461. <member name="M:HttpServer.ComponentProvider.Create(HttpServer.ComponentProvider.TypeInformation)">
  3462. <exception cref="T:System.InvalidOperationException">If instance cannot be created.</exception>
  3463. </member>
  3464. <member name="M:HttpServer.ComponentProvider.Contains(System.Type)">
  3465. <summary>
  3466. Checks if the specified component interface have been added.
  3467. </summary>
  3468. <param name="interfaceType"></param>
  3469. <returns>true if found; otherwise false.</returns>
  3470. </member>
  3471. <member name="M:HttpServer.ComponentProvider.Add``2">
  3472. <summary>
  3473. Add a component.
  3474. </summary>
  3475. <typeparam name="InterfaceType">Type being requested.</typeparam>
  3476. <typeparam name="InstanceType">Type being created.</typeparam>
  3477. <exception cref="T:System.InvalidOperationException">Type have already been mapped.</exception>
  3478. </member>
  3479. <member name="T:HttpServer.HttpModules.FileModule">
  3480. <summary>
  3481. The purpose of this module is to serve files.
  3482. </summary>
  3483. </member>
  3484. <member name="M:HttpServer.HttpModules.FileModule.#ctor(System.String,System.String,System.Boolean)">
  3485. <summary>
  3486. Initializes a new instance of the <see cref="T:HttpServer.HttpModules.FileModule"/> class.
  3487. </summary>
  3488. <param name="baseUri">Uri to serve, for instance "/files/"</param>
  3489. <param name="basePath">Path on hard drive where we should start looking for files</param>
  3490. <param name="useLastModifiedHeader">If true a Last-Modifed header will be sent upon requests urging web browser to cache files</param>
  3491. </member>
  3492. <member name="M:HttpServer.HttpModules.FileModule.#ctor(System.String,System.String)">
  3493. <summary>
  3494. Initializes a new instance of the <see cref="T:HttpServer.HttpModules.FileModule"/> class.
  3495. </summary>
  3496. <param name="baseUri">Uri to serve, for instance "/files/"</param>
  3497. <param name="basePath">Path on hard drive where we should start looking for files</param>
  3498. </member>
  3499. <member name="M:HttpServer.HttpModules.FileModule.AddDefaultMimeTypes">
  3500. <summary>
  3501. Mimtypes that this class can handle per default
  3502. </summary>
  3503. </member>
  3504. <member name="M:HttpServer.HttpModules.FileModule.CanHandle(System.Uri)">
  3505. <summary>
  3506. Determines if the request should be handled by this module.
  3507. Invoked by the <see cref="T:HttpServer.HttpServer"/>
  3508. </summary>
  3509. <param name="uri"></param>
  3510. <returns>true if this module should handle it.</returns>
  3511. </member>
  3512. <member name="M:HttpServer.HttpModules.FileModule.GetPath(System.Uri)">
  3513. <exception cref="T:HttpServer.Exceptions.BadRequestException">Illegal path</exception>
  3514. </member>
  3515. <member name="M:HttpServer.HttpModules.FileModule.Contains(System.String,System.Collections.Generic.IEnumerable{System.String})">
  3516. <summary>
  3517. check if source contains any of the chars.
  3518. </summary>
  3519. <param name="source"></param>
  3520. <param name="chars"></param>
  3521. <returns></returns>
  3522. </member>
  3523. <member name="M:HttpServer.HttpModules.FileModule.Process(HttpServer.IHttpRequest,HttpServer.IHttpResponse,HttpServer.Sessions.IHttpSession)">
  3524. <summary>
  3525. Method that process the Uri.
  3526. </summary>
  3527. <param name="request">Information sent by the browser about the request</param>
  3528. <param name="response">Information that is being sent back to the client.</param>
  3529. <param name="session">Session used to </param>
  3530. <exception cref="T:HttpServer.Exceptions.InternalServerException">Failed to find file extension</exception>
  3531. <exception cref="T:HttpServer.Exceptions.ForbiddenException">File type is forbidden.</exception>
  3532. </member>
  3533. <member name="M:HttpServer.HttpModules.FileModule.GetFileExtension(System.String)">
  3534. <summary>
  3535. return a file extension from an absolute Uri path (or plain filename)
  3536. </summary>
  3537. <param name="uri"></param>
  3538. <returns></returns>
  3539. </member>
  3540. <member name="P:HttpServer.HttpModules.FileModule.MimeTypes">
  3541. <summary>
  3542. List with all mime-type that are allowed.
  3543. </summary>
  3544. <remarks>All other mime types will result in a Forbidden http status code.</remarks>
  3545. </member>
  3546. <member name="P:HttpServer.HttpModules.FileModule.ForbiddenChars">
  3547. <summary>
  3548. characters that may not exist in a path.
  3549. </summary>
  3550. <example>
  3551. fileMod.ForbiddenChars = new string[]{ "\\", "..", ":" };
  3552. </example>
  3553. </member>
  3554. <member name="T:HttpServer.HttpListenerBase">
  3555. <summary>
  3556. Contains a listener that doesn't do anything with the connections.
  3557. </summary>
  3558. </member>
  3559. <member name="M:HttpServer.HttpListenerBase.#ctor(System.Net.IPAddress,System.Int32,HttpServer.IHttpContextFactory)">
  3560. <summary>
  3561. Listen for regular HTTP connections
  3562. </summary>
  3563. <param name="address">IP Address to accept connections on</param>
  3564. <param name="port">TCP Port to listen on, default HTTP port is 80.</param>
  3565. <param name="factory">Factory used to create <see cref="T:HttpServer.IHttpClientContext"/>es.</param>
  3566. <exception cref="T:System.ArgumentNullException"><c>address</c> is null.</exception>
  3567. <exception cref="T:System.ArgumentException">Port must be a positive number.</exception>
  3568. </member>
  3569. <member name="M:HttpServer.HttpListenerBase.#ctor(System.Net.IPAddress,System.Int32,HttpServer.IHttpContextFactory,System.Security.Cryptography.X509Certificates.X509Certificate)">
  3570. <summary>
  3571. Initializes a new instance of the <see cref="T:HttpServer.HttpListenerBase"/> class.
  3572. </summary>
  3573. <param name="address">IP Address to accept connections on</param>
  3574. <param name="port">TCP Port to listen on, default HTTPS port is 443</param>
  3575. <param name="factory">Factory used to create <see cref="T:HttpServer.IHttpClientContext"/>es.</param>
  3576. <param name="certificate">Certificate to use</param>
  3577. </member>
  3578. <member name="M:HttpServer.HttpListenerBase.#ctor(System.Net.IPAddress,System.Int32,HttpServer.IHttpContextFactory,System.Security.Cryptography.X509Certificates.X509Certificate,System.Security.Authentication.SslProtocols)">
  3579. <summary>
  3580. Initializes a new instance of the <see cref="T:HttpServer.HttpListenerBase"/> class.
  3581. </summary>
  3582. <param name="address">IP Address to accept connections on</param>
  3583. <param name="port">TCP Port to listen on, default HTTPS port is 443</param>
  3584. <param name="factory">Factory used to create <see cref="T:HttpServer.IHttpClientContext"/>es.</param>
  3585. <param name="certificate">Certificate to use</param>
  3586. <param name="protocol">which HTTPS protocol to use, default is TLS.</param>
  3587. </member>
  3588. <member name="M:HttpServer.HttpListenerBase.OnAccept(System.IAsyncResult)">
  3589. <exception cref="T:System.Exception"><c>Exception</c>.</exception>
  3590. </member>
  3591. <member name="M:HttpServer.HttpListenerBase.RetryBeginAccept">
  3592. <summary>
  3593. Will try to accept connections one more time.
  3594. </summary>
  3595. <exception cref="T:System.Exception">If any exceptions is thrown.</exception>
  3596. </member>
  3597. <member name="M:HttpServer.HttpListenerBase.OnAcceptingSocket(System.Net.Sockets.Socket)">
  3598. <summary>
  3599. Can be used to create filtering of new connections.
  3600. </summary>
  3601. <param name="socket">Accepted socket</param>
  3602. <returns>true if connection can be accepted; otherwise false.</returns>
  3603. </member>
  3604. <member name="M:HttpServer.HttpListenerBase.Start(System.Int32)">
  3605. <summary>
  3606. Start listen for new connections
  3607. </summary>
  3608. <param name="backlog">Number of connections that can stand in a queue to be accepted.</param>
  3609. <exception cref="T:System.InvalidOperationException">Listener have already been started.</exception>
  3610. </member>
  3611. <member name="M:HttpServer.HttpListenerBase.Stop">
  3612. <summary>
  3613. Stop the listener
  3614. </summary>
  3615. <exception cref="T:System.Net.Sockets.SocketException"></exception>
  3616. </member>
  3617. <member name="P:HttpServer.HttpListenerBase.LogWriter">
  3618. <summary>
  3619. Gives you a change to receive log entries for all internals of the HTTP library.
  3620. </summary>
  3621. <remarks>
  3622. You may not switch log writer after starting the listener.
  3623. </remarks>
  3624. </member>
  3625. <member name="P:HttpServer.HttpListenerBase.UseTraceLogs">
  3626. <summary>
  3627. True if we should turn on trace logs.
  3628. </summary>
  3629. </member>
  3630. <member name="E:HttpServer.HttpListenerBase.ExceptionThrown">
  3631. <summary>
  3632. Catch exceptions not handled by the listener.
  3633. </summary>
  3634. <remarks>
  3635. Exceptions will be thrown during debug mode if this event is not used,
  3636. exceptions will be printed to console and suppressed during release mode.
  3637. </remarks>
  3638. </member>
  3639. <member name="E:HttpServer.HttpListenerBase.RequestReceived">
  3640. <summary>
  3641. A request have been received from a <see cref="T:HttpServer.IHttpClientContext"/>.
  3642. </summary>
  3643. </member>
  3644. <member name="T:HttpServer.HttpFile">
  3645. <summary>
  3646. Container class for posted files
  3647. </summary>
  3648. </member>
  3649. <member name="M:HttpServer.HttpFile.#ctor(System.String,System.String,System.String,System.String)">
  3650. <summary>
  3651. Creates a container for a posted file
  3652. </summary>
  3653. <param name="name">The identifier of the post field</param>
  3654. <param name="filename">The file path</param>
  3655. <param name="contentType">The content type of the file</param>
  3656. <param name="uploadFilename">The name of the file uploaded</param>
  3657. <exception cref="T:System.ArgumentNullException">If any parameter is null or empty</exception>
  3658. </member>
  3659. <member name="M:HttpServer.HttpFile.#ctor(System.String,System.String,System.String)">
  3660. <summary>
  3661. Creates a container for a posted file <see cref="M:HttpServer.HttpFile.#ctor(System.String,System.String,System.String,System.String)"/>
  3662. </summary>
  3663. <exception cref="T:System.ArgumentNullException">If any parameter is null or empty</exception>
  3664. </member>
  3665. <member name="M:HttpServer.HttpFile.Finalize">
  3666. <summary>Destructor disposing the file</summary>
  3667. </member>
  3668. <member name="M:HttpServer.HttpFile.Dispose(System.Boolean)">
  3669. <summary>
  3670. Deletes the temporary file
  3671. </summary>
  3672. <param name="disposing">True if manual dispose</param>
  3673. </member>
  3674. <member name="M:HttpServer.HttpFile.Dispose">
  3675. <summary>
  3676. Disposing interface, cleans up managed resources (the temporary file) and suppresses finalization
  3677. </summary>
  3678. </member>
  3679. <member name="P:HttpServer.HttpFile.Name">
  3680. <summary>
  3681. The name/id of the file
  3682. </summary>
  3683. </member>
  3684. <member name="P:HttpServer.HttpFile.Filename">
  3685. <summary>
  3686. The full file path
  3687. </summary>
  3688. </member>
  3689. <member name="P:HttpServer.HttpFile.UploadFilename">
  3690. <summary>
  3691. The name of the uploaded file
  3692. </summary>
  3693. </member>
  3694. <member name="P:HttpServer.HttpFile.ContentType">
  3695. <summary>
  3696. The type of file
  3697. </summary>
  3698. </member>
  3699. <member name="T:HttpServer.Authentication.DigestAuthentication">
  3700. <summary>
  3701. Implements HTTP Digest authentication. It's more secure than Basic auth since password is
  3702. encrypted with a "key" from the server.
  3703. </summary>
  3704. <remarks>
  3705. Keep in mind that the password is encrypted with MD5. Use a combination of SSL and digest auth to be secure.
  3706. </remarks>
  3707. </member>
  3708. <member name="M:HttpServer.Authentication.DigestAuthentication.#ctor(HttpServer.Authentication.AuthenticationHandler,HttpServer.Authentication.AuthenticationRequiredHandler)">
  3709. <summary>
  3710. Initializes a new instance of the <see cref="T:HttpServer.Authentication.DigestAuthentication"/> class.
  3711. </summary>
  3712. <param name="authenticator">Delegate used to provide information used during authentication.</param>
  3713. <param name="authenticationRequiredHandler">Delegate used to determine if authentication is required (may be null).</param>
  3714. </member>
  3715. <member name="M:HttpServer.Authentication.DigestAuthentication.#ctor(HttpServer.Authentication.AuthenticationHandler)">
  3716. <summary>
  3717. Initializes a new instance of the <see cref="T:HttpServer.Authentication.DigestAuthentication"/> class.
  3718. </summary>
  3719. <param name="authenticator">Delegate used to provide information used during authentication.</param>
  3720. </member>
  3721. <member name="F:HttpServer.Authentication.DigestAuthentication.DisableNonceCheck">
  3722. <summary>
  3723. Used by test classes to be able to use hardcoded values
  3724. </summary>
  3725. </member>
  3726. <member name="M:HttpServer.Authentication.DigestAuthentication.Authenticate(System.String,System.String,System.String,System.Object[])">
  3727. <summary>
  3728. An authentication response have been received from the web browser.
  3729. Check if it's correct
  3730. </summary>
  3731. <param name="authenticationHeader">Contents from the Authorization header</param>
  3732. <param name="realm">Realm that should be authenticated</param>
  3733. <param name="httpVerb">GET/POST/PUT/DELETE etc.</param>
  3734. <param name="options">First option: true if username/password is correct but not cnonce</param>
  3735. <returns>
  3736. Authentication object that is stored for the request. A user class or something like that.
  3737. </returns>
  3738. <exception cref="T:System.ArgumentException">if authenticationHeader is invalid</exception>
  3739. <exception cref="T:System.ArgumentNullException">If any of the paramters is empty or null.</exception>
  3740. </member>
  3741. <member name="M:HttpServer.Authentication.DigestAuthentication.Encrypt(System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String)">
  3742. <summary>
  3743. Encrypts parameters into a Digest string
  3744. </summary>
  3745. <param name="realm">Realm that the user want to log into.</param>
  3746. <param name="userName">User logging in</param>
  3747. <param name="password">Users password.</param>
  3748. <param name="method">HTTP method.</param>
  3749. <param name="uri">Uri/domain that generated the login prompt.</param>
  3750. <param name="qop">Quality of Protection.</param>
  3751. <param name="nonce">"Number used ONCE"</param>
  3752. <param name="nc">Hexadecimal request counter.</param>
  3753. <param name="cnonce">"Client Number used ONCE"</param>
  3754. <returns>Digest encrypted string</returns>
  3755. </member>
  3756. <member name="M:HttpServer.Authentication.DigestAuthentication.Encrypt(System.String,System.String,System.String,System.String,System.String,System.String)">
  3757. <summary>
  3758. </summary>
  3759. <param name="ha1">Md5 hex encoded "userName:realm:password", without the quotes.</param>
  3760. <param name="ha2">Md5 hex encoded "method:uri", without the quotes</param>
  3761. <param name="qop">Quality of Protection</param>
  3762. <param name="nonce">"Number used ONCE"</param>
  3763. <param name="nc">Hexadecimal request counter.</param>
  3764. <param name="cnonce">Client number used once</param>
  3765. <returns></returns>
  3766. </member>
  3767. <member name="M:HttpServer.Authentication.DigestAuthentication.CreateResponse(System.String,System.Object[])">
  3768. <summary>
  3769. Create a response that can be sent in the WWW-Authenticate header.
  3770. </summary>
  3771. <param name="realm">Realm that the user should authenticate in</param>
  3772. <param name="options">First options specifies if true if username/password is correct but not cnonce.</param>
  3773. <returns>A correct auth request.</returns>
  3774. <exception cref="T:System.ArgumentNullException">If realm is empty or null.</exception>
  3775. </member>
  3776. <member name="M:HttpServer.Authentication.DigestAuthentication.Decode(System.String,System.Text.Encoding)">
  3777. <summary>
  3778. Decodes authorization header value
  3779. </summary>
  3780. <param name="buffer">header value</param>
  3781. <param name="encoding">Encoding that the buffer is in</param>
  3782. <returns>All headers and their values if successful; otherwise null</returns>
  3783. <example>
  3784. NameValueCollection header = DigestAuthentication.Decode("response=\"6629fae49393a05397450978507c4ef1\",\r\nc=00001", Encoding.ASCII);
  3785. </example>
  3786. <remarks>Can handle lots of whitespaces and new lines without failing.</remarks>
  3787. </member>
  3788. <member name="M:HttpServer.Authentication.DigestAuthentication.GetCurrentNonce">
  3789. <summary>
  3790. Gets the current nonce.
  3791. </summary>
  3792. <returns></returns>
  3793. </member>
  3794. <member name="M:HttpServer.Authentication.DigestAuthentication.GetMD5HashBinHex2(System.String)">
  3795. <summary>
  3796. Gets the Md5 hash bin hex2.
  3797. </summary>
  3798. <param name="toBeHashed">To be hashed.</param>
  3799. <returns></returns>
  3800. </member>
  3801. <member name="M:HttpServer.Authentication.DigestAuthentication.IsValidNonce(System.String)">
  3802. <summary>
  3803. determines if the nonce is valid or has expired.
  3804. </summary>
  3805. <param name="nonce">nonce value (check wikipedia for info)</param>
  3806. <returns>true if the nonce has not expired.</returns>
  3807. </member>
  3808. <member name="P:HttpServer.Authentication.DigestAuthentication.Name">
  3809. <summary>
  3810. name used in http request.
  3811. </summary>
  3812. </member>
  3813. <member name="P:HttpServer.Authentication.DigestAuthentication.TokenIsHA1">
  3814. <summary>
  3815. Gets or sets whether the token supplied in <see cref="T:HttpServer.Authentication.AuthenticationHandler"/> is a
  3816. HA1 generated string.
  3817. </summary>
  3818. </member>
  3819. <member name="T:HttpServer.RequestParserState">
  3820. <summary>
  3821. Current state in the parsing.
  3822. </summary>
  3823. </member>
  3824. <member name="F:HttpServer.RequestParserState.FirstLine">
  3825. <summary>
  3826. Should parse the request line
  3827. </summary>
  3828. </member>
  3829. <member name="F:HttpServer.RequestParserState.HeaderName">
  3830. <summary>
  3831. Searching for a complete header name
  3832. </summary>
  3833. </member>
  3834. <member name="F:HttpServer.RequestParserState.AfterName">
  3835. <summary>
  3836. Searching for colon after header name (ignoring white spaces)
  3837. </summary>
  3838. </member>
  3839. <member name="F:HttpServer.RequestParserState.Between">
  3840. <summary>
  3841. Searching for start of header value (ignoring white spaces)
  3842. </summary>
  3843. </member>
  3844. <member name="F:HttpServer.RequestParserState.HeaderValue">
  3845. <summary>
  3846. Searching for a complete header value (can span over multiple lines, as long as they are prefixed with one/more whitespaces)
  3847. </summary>
  3848. </member>
  3849. <member name="F:HttpServer.RequestParserState.Body">
  3850. <summary>
  3851. Adding bytes to body
  3852. </summary>
  3853. </member>
  3854. <member name="T:HttpServer.Rules.RegexRedirectRule">
  3855. <summary>
  3856. Class to make dynamic binding of redirects. Instead of having to specify a number of similar redirect rules
  3857. a regular expression can be used to identify redirect URLs and their targets.
  3858. </summary>
  3859. <example>
  3860. <![CDATA[
  3861. new RegexRedirectRule("/(?<target>[a-z0-9]+)", "/users/${target}?find=true", RegexOptions.IgnoreCase)
  3862. ]]>
  3863. </example>
  3864. </member>
  3865. <member name="M:HttpServer.Rules.RegexRedirectRule.#ctor(System.String,System.String)">
  3866. <summary>
  3867. Initializes a new instance of the <see cref="T:HttpServer.Rules.RegexRedirectRule"/> class.
  3868. </summary>
  3869. <param name="fromUrlExpression">Expression to match URL</param>
  3870. <param name="toUrlExpression">Expression to generate URL</param>
  3871. <example>
  3872. <![CDATA[
  3873. server.Add(new RegexRedirectRule("/(?<first>[a-zA-Z0-9]+)", "/user/${first}"));
  3874. Result of ie. /employee1 will then be /user/employee1
  3875. ]]>
  3876. </example>
  3877. </member>
  3878. <member name="M:HttpServer.Rules.RegexRedirectRule.#ctor(System.String,System.String,System.Text.RegularExpressions.RegexOptions)">
  3879. <summary>
  3880. Initializes a new instance of the <see cref="T:HttpServer.Rules.RegexRedirectRule"/> class.
  3881. </summary>
  3882. <param name="fromUrlExpression">Expression to match URL</param>
  3883. <param name="toUrlExpression">Expression to generate URL</param>
  3884. <param name="options">Regular expression options to use, can be null</param>
  3885. <example>
  3886. <![CDATA[
  3887. server.Add(new RegexRedirectRule("/(?<first>[a-zA-Z0-9]+)", "/user/{first}", RegexOptions.IgnoreCase));
  3888. Result of ie. /employee1 will then be /user/employee1
  3889. ]]>
  3890. </example>
  3891. </member>
  3892. <member name="M:HttpServer.Rules.RegexRedirectRule.#ctor(System.String,System.String,System.Text.RegularExpressions.RegexOptions,System.Boolean)">
  3893. <summary>
  3894. Initializes a new instance of the <see cref="T:HttpServer.Rules.RegexRedirectRule"/> class.
  3895. </summary>
  3896. <param name="fromUrlExpression">Expression to match URL</param>
  3897. <param name="toUrlExpression">Expression to generate URL</param>
  3898. <param name="options">Regular expression options to apply</param>
  3899. <param name="shouldRedirect"><c>true</c> if request should be redirected, <c>false</c> if the request URI should be replaced.</param>
  3900. <example>
  3901. <![CDATA[
  3902. server.Add(new RegexRedirectRule("/(?<first>[a-zA-Z0-9]+)", "/user/${first}", RegexOptions.None));
  3903. Result of ie. /employee1 will then be /user/employee1
  3904. ]]>
  3905. </example>
  3906. <exception cref="T:System.ArgumentNullException">Argument is null.</exception>
  3907. <seealso cref="P:HttpServer.Rules.RedirectRule.ShouldRedirect"/>
  3908. </member>
  3909. <member name="M:HttpServer.Rules.RegexRedirectRule.Process(HttpServer.IHttpRequest,HttpServer.IHttpResponse)">
  3910. <summary>
  3911. Process the incoming request.
  3912. </summary>
  3913. <param name="request">incoming HTTP request</param>
  3914. <param name="response">outgoing HTTP response</param>
  3915. <returns>true if response should be sent to the browser directly (no other rules or modules will be processed).</returns>
  3916. <remarks>
  3917. returning true means that no modules will get the request. Returning true is typically being done
  3918. for redirects.
  3919. </remarks>
  3920. <exception cref="T:System.ArgumentNullException">If request or response is null</exception>
  3921. </member>
  3922. <member name="T:HttpServer.RequestCookies">
  3923. <summary>
  3924. This class is created as a wrapper, since there are two different cookie types in .Net (Cookie and HttpCookie).
  3925. The framework might switch class in the future and we dont want to have to replace all instances
  3926. </summary>
  3927. </member>
  3928. <member name="M:HttpServer.RequestCookies.#ctor(System.String)">
  3929. <summary>
  3930. Let's copy all the cookies.
  3931. </summary>
  3932. <param name="cookies">value from cookie header.</param>
  3933. </member>
  3934. <member name="M:HttpServer.RequestCookies.Add(HttpServer.RequestCookie)">
  3935. <summary>
  3936. Adds a cookie in the collection.
  3937. </summary>
  3938. <param name="cookie">cookie to add</param>
  3939. <exception cref="T:System.ArgumentNullException">cookie is null</exception>
  3940. </member>
  3941. <member name="M:HttpServer.RequestCookies.GetEnumerator">
  3942. <summary>
  3943. Gets a collection enumerator on the cookie list.
  3944. </summary>
  3945. <returns>collection enumerator</returns>
  3946. </member>
  3947. <member name="M:HttpServer.RequestCookies.Clear">
  3948. <summary>
  3949. Remove all cookies.
  3950. </summary>
  3951. </member>
  3952. <member name="M:HttpServer.RequestCookies.System#Collections#Generic#IEnumerable{HttpServer#RequestCookie}#GetEnumerator">
  3953. <summary>
  3954. Returns an enumerator that iterates through the collection.
  3955. </summary>
  3956. <returns>
  3957. A <see cref="T:System.Collections.Generic.IEnumerator`1"></see> that can be used to iterate through the collection.
  3958. </returns>
  3959. <filterpriority>1</filterpriority>
  3960. </member>
  3961. <member name="M:HttpServer.RequestCookies.Remove(System.String)">
  3962. <summary>
  3963. Remove a cookie from the collection.
  3964. </summary>
  3965. <param name="cookieName">Name of cookie.</param>
  3966. </member>
  3967. <member name="P:HttpServer.RequestCookies.Count">
  3968. <summary>
  3969. Gets the count of cookies in the collection.
  3970. </summary>
  3971. </member>
  3972. <member name="P:HttpServer.RequestCookies.Item(System.String)">
  3973. <summary>
  3974. Gets the cookie of a given identifier (null if not existing).
  3975. </summary>
  3976. </member>
  3977. <member name="T:HttpServer.Parser.BodyEventArgs">
  3978. <summary>
  3979. Arguments used when more body bytes have come.
  3980. </summary>
  3981. </member>
  3982. <member name="M:HttpServer.Parser.BodyEventArgs.#ctor(System.Byte[],System.Int32,System.Int32)">
  3983. <summary>
  3984. Initializes a new instance of the <see cref="T:HttpServer.Parser.BodyEventArgs"/> class.
  3985. </summary>
  3986. <param name="buffer">buffer that contains the received bytes.</param>
  3987. <param name="offset">offset in buffer where to start processing.</param>
  3988. <param name="count">number of bytes from <paramref name="offset"/> that should be parsed.</param>
  3989. </member>
  3990. <member name="M:HttpServer.Parser.BodyEventArgs.#ctor">
  3991. <summary>
  3992. Initializes a new instance of the <see cref="T:HttpServer.Parser.BodyEventArgs"/> class.
  3993. </summary>
  3994. </member>
  3995. <member name="P:HttpServer.Parser.BodyEventArgs.Buffer">
  3996. <summary>
  3997. Gets or sets buffer that contains the received bytes.
  3998. </summary>
  3999. </member>
  4000. <member name="P:HttpServer.Parser.BodyEventArgs.Count">
  4001. <summary>
  4002. Gets or sets number of bytes from <see cref="P:HttpServer.Parser.BodyEventArgs.Offset"/> that should be parsed.
  4003. </summary>
  4004. </member>
  4005. <member name="P:HttpServer.Parser.BodyEventArgs.Offset">
  4006. <summary>
  4007. Gets or sets offset in buffer where to start processing.
  4008. </summary>
  4009. </member>
  4010. <member name="T:HttpServer.HttpParam">
  4011. <summary>
  4012. Returns item either from a form or a query string (checks them in that order)
  4013. </summary>
  4014. </member>
  4015. <member name="F:HttpServer.HttpParam.Empty">
  4016. <summary> Representation of a non-initialized HttpParam </summary>
  4017. </member>
  4018. <member name="M:HttpServer.HttpParam.#ctor(HttpServer.IHttpInput,HttpServer.IHttpInput)">
  4019. <summary>Initialises the class to hold a value either from a post request or a querystring request</summary>
  4020. </member>
  4021. <member name="M:HttpServer.HttpParam.Add(System.String,System.String)">
  4022. <summary>
  4023. The add method is not availible for HttpParam
  4024. since HttpParam checks both Request.Form and Request.QueryString
  4025. </summary>
  4026. <param name="name">name identifying the value</param>
  4027. <param name="value">value to add</param>
  4028. <exception cref="T:System.NotImplementedException"></exception>
  4029. </member>
  4030. <member name="M:HttpServer.HttpParam.Contains(System.String)">
  4031. <summary>
  4032. Checks whether the form or querystring has the specified value
  4033. </summary>
  4034. <param name="name">Name, case sensitive</param>
  4035. <returns>true if found; otherwise false.</returns>
  4036. </member>
  4037. <member name="M:HttpServer.HttpParam.System#Collections#Generic#IEnumerable{HttpServer#HttpInputItem}#GetEnumerator">
  4038. <summary>
  4039. Returns an enumerator that iterates through the collection.
  4040. </summary>
  4041. <returns>
  4042. A <see cref="T:System.Collections.Generic.IEnumerator`1"></see> that can be used to iterate through the collection.
  4043. </returns>
  4044. <filterpriority>1</filterpriority>
  4045. </member>
  4046. <member name="M:HttpServer.HttpParam.GetEnumerator">
  4047. <summary>
  4048. Returns an enumerator that iterates through a collection.
  4049. </summary>
  4050. <returns>
  4051. An <see cref="T:System.Collections.IEnumerator"></see> object that can be used to iterate through the collection.
  4052. </returns>
  4053. <filterpriority>2</filterpriority>
  4054. </member>
  4055. <member name="P:HttpServer.HttpParam.Item(System.String)">
  4056. <summary>
  4057. Fetch an item from the form or querystring (in that order).
  4058. </summary>
  4059. <param name="name"></param>
  4060. <returns>Item if found; otherwise HttpInputItem.EmptyLanguageNode</returns>
  4061. </member>
  4062. <member name="T:HttpServer.ExceptionHandler">
  4063. <summary>
  4064. We dont want to let the server to die due to exceptions thrown in worker threads.
  4065. therefore we use this delegate to give you a change to handle uncaught exceptions.
  4066. </summary>
  4067. <param name="source">Class that the exception was thrown in.</param>
  4068. <param name="exception">Exception</param>
  4069. <remarks>
  4070. Server will throw a InternalServerException in release version if you dont
  4071. handle this delegate.
  4072. </remarks>
  4073. </member>
  4074. <member name="T:HttpServer.Authentication.AuthenticationHandler">
  4075. <summary>
  4076. Delegate used to let authentication modules authenticate the user name and password.
  4077. </summary>
  4078. <param name="realm">Realm that the user want to authenticate in</param>
  4079. <param name="userName">User name specified by client</param>
  4080. <param name="token">Can either be user password or implementation specific token.</param>
  4081. <param name="login">object that will be stored in a session variable called <see cref="F:HttpServer.Authentication.AuthenticationModule.AuthenticationTag"/> if authentication was successful.</param>
  4082. <exception cref="T:HttpServer.Exceptions.ForbiddenException">throw forbidden exception if too many attempts have been made.</exception>
  4083. <remarks>
  4084. <para>
  4085. Use <see cref="P:HttpServer.Authentication.DigestAuthentication.TokenIsHA1"/> to specify that the token is a HA1 token. (MD5 generated
  4086. string from realm, user name and password); Md5String(userName + ":" + realm + ":" + password);
  4087. </para>
  4088. </remarks>
  4089. </member>
  4090. <member name="T:HttpServer.Authentication.AuthenticationRequiredHandler">
  4091. <summary>
  4092. Let's you decide on a system level if authentication is required.
  4093. </summary>
  4094. <param name="request">HTTP request from client</param>
  4095. <returns>true if user should be authenticated.</returns>
  4096. <remarks>throw <see cref="T:HttpServer.Exceptions.ForbiddenException"/> if no more attempts are allowed.</remarks>
  4097. <exception cref="T:HttpServer.Exceptions.ForbiddenException">If no more attempts are allowed</exception>
  4098. </member>
  4099. <member name="T:HttpServer.HttpListener">
  4100. <summary>
  4101. New implementation of the HTTP listener.
  4102. </summary>
  4103. <remarks>
  4104. Use the <c>Create</c> methods to create a default listener.
  4105. </remarks>
  4106. </member>
  4107. <member name="M:HttpServer.HttpListener.#ctor(System.Net.IPAddress,System.Int32,HttpServer.IHttpContextFactory)">
  4108. <summary>
  4109. Initializes a new instance of the <see cref="T:HttpServer.HttpListener"/> class.
  4110. </summary>
  4111. <param name="address">IP Address to accept connections on</param>
  4112. <param name="port">TCP Port to listen on, default HTTP port is 80.</param>
  4113. <param name="factory">Factory used to create <see cref="T:HttpServer.IHttpClientContext"/>es.</param>
  4114. <exception cref="T:System.ArgumentNullException"><c>address</c> is null.</exception>
  4115. <exception cref="T:System.ArgumentException">Port must be a positive number.</exception>
  4116. </member>
  4117. <member name="M:HttpServer.HttpListener.#ctor(System.Net.IPAddress,System.Int32,HttpServer.IHttpContextFactory,System.Security.Cryptography.X509Certificates.X509Certificate)">
  4118. <summary>
  4119. Initializes a new instance of the <see cref="T:HttpServer.HttpListener"/> class.
  4120. </summary>
  4121. <param name="address">The address.</param>
  4122. <param name="port">The port.</param>
  4123. <param name="factory">The factory.</param>
  4124. <param name="certificate">The certificate.</param>
  4125. </member>
  4126. <member name="M:HttpServer.HttpListener.#ctor(System.Net.IPAddress,System.Int32,HttpServer.IHttpContextFactory,System.Security.Cryptography.X509Certificates.X509Certificate,System.Security.Authentication.SslProtocols)">
  4127. <summary>
  4128. Initializes a new instance of the <see cref="T:HttpServer.HttpListener"/> class.
  4129. </summary>
  4130. <param name="address">The address.</param>
  4131. <param name="port">The port.</param>
  4132. <param name="factory">The factory.</param>
  4133. <param name="certificate">The certificate.</param>
  4134. <param name="protocol">The protocol.</param>
  4135. </member>
  4136. <member name="M:HttpServer.HttpListener.Create(System.Net.IPAddress,System.Int32)">
  4137. <summary>
  4138. Creates a new <see cref="T:HttpServer.HttpListener"/> instance with default factories.
  4139. </summary>
  4140. <param name="address">Address that the listener should accept connections on.</param>
  4141. <param name="port">Port that listener should accept connections on.</param>
  4142. <returns>Created HTTP listener.</returns>
  4143. </member>
  4144. <member name="M:HttpServer.HttpListener.Create(System.Net.IPAddress,System.Int32,System.Security.Cryptography.X509Certificates.X509Certificate)">
  4145. <summary>
  4146. Creates a new <see cref="T:HttpServer.HttpListener"/> instance with default factories.
  4147. </summary>
  4148. <param name="address">Address that the listener should accept connections on.</param>
  4149. <param name="port">Port that listener should accept connections on.</param>
  4150. <param name="certificate">Certificate to use</param>
  4151. <returns>Created HTTP listener.</returns>
  4152. </member>
  4153. <member name="M:HttpServer.HttpListener.Create(System.Net.IPAddress,System.Int32,System.Security.Cryptography.X509Certificates.X509Certificate,System.Security.Authentication.SslProtocols)">
  4154. <summary>
  4155. Creates a new <see cref="T:HttpServer.HttpListener"/> instance with default factories.
  4156. </summary>
  4157. <param name="address">Address that the listener should accept connections on.</param>
  4158. <param name="port">Port that listener should accept connections on.</param>
  4159. <param name="certificate">Certificate to use</param>
  4160. <param name="protocol">which HTTPS protocol to use, default is TLS.</param>
  4161. <returns>Created HTTP listener.</returns>
  4162. </member>
  4163. <member name="M:HttpServer.HttpListener.OnAcceptingSocket(System.Net.Sockets.Socket)">
  4164. <summary>
  4165. Can be used to create filtering of new connections.
  4166. </summary>
  4167. <param name="socket">Accepted socket</param>
  4168. <returns>
  4169. true if connection can be accepted; otherwise false.
  4170. </returns>
  4171. </member>
  4172. <member name="E:HttpServer.HttpListener.Accepted">
  4173. <summary>
  4174. A client have been accepted, but not handled, by the listener.
  4175. </summary>
  4176. </member>
  4177. <member name="T:HttpServer.Helpers.WebHelper">
  4178. <summary>
  4179. Webhelper provides helpers for common tasks in HTML.
  4180. </summary>
  4181. </member>
  4182. <member name="F:HttpServer.Helpers.WebHelper.JSImplementation">
  4183. <summary>
  4184. Used to let the website use different javascript libraries.
  4185. Default is <see cref="T:HttpServer.Helpers.Implementations.PrototypeImp"/>
  4186. </summary>
  4187. </member>
  4188. <member name="M:HttpServer.Helpers.WebHelper.AjaxRequest(System.String,System.String,System.String[])">
  4189. <summary>
  4190. Creates a link that invokes through ajax.
  4191. </summary>
  4192. <param name="url">url to fetch</param>
  4193. <param name="title">link title</param>
  4194. <param name="options">
  4195. optional options in format "key, value, key, value".
  4196. Javascript options starts with ':'.
  4197. </param>
  4198. <returns>a link tag</returns>
  4199. <example>
  4200. WebHelper.AjaxRequest("/users/add/", "Add user", "method:", "post", "onclick", "validate('this');");
  4201. </example>
  4202. </member>
  4203. <member name="M:HttpServer.Helpers.WebHelper.AjaxUpdater(System.String,System.String,System.String,System.String[])">
  4204. <summary>
  4205. Builds a link that updates an element with the fetched ajax content.
  4206. </summary>
  4207. <param name="url">Url to fetch content from</param>
  4208. <param name="title">link title</param>
  4209. <param name="targetId">html element to update with the results of the ajax request.</param>
  4210. <param name="options">optional options in format "key, value, key, value"</param>
  4211. <returns>A link tag.</returns>
  4212. </member>
  4213. <member name="M:HttpServer.Helpers.WebHelper.DialogLink(System.String,System.String,System.String[])">
  4214. <summary>
  4215. A link that pop ups a Dialog (overlay div)
  4216. </summary>
  4217. <param name="url">url to contents of dialog</param>
  4218. <param name="title">link title</param>
  4219. <param name="htmlAttributes">name/value of html attributes.</param>
  4220. <returns>A "a"-tag that popups a dialog when clicked</returns>
  4221. <example>
  4222. WebHelper.DialogLink("/user/show/1", "show user", "onmouseover", "alert('booh!');");
  4223. </example>
  4224. </member>
  4225. <member name="M:HttpServer.Helpers.WebHelper.CreateDialog(System.String,System.String,System.String[])">
  4226. <summary>
  4227. Create/Open a dialog box using ajax
  4228. </summary>
  4229. <param name="url"></param>
  4230. <param name="title"></param>
  4231. <param name="parameters"></param>
  4232. <returns></returns>
  4233. </member>
  4234. <member name="M:HttpServer.Helpers.WebHelper.CloseDialog">
  4235. <summary>
  4236. Close a javascript dialog window/div.
  4237. </summary>
  4238. <returns>javascript for closing a dialog.</returns>
  4239. <see cref="M:HttpServer.Helpers.WebHelper.DialogLink(System.String,System.String,System.String[])"/>
  4240. </member>
  4241. <member name="M:HttpServer.Helpers.WebHelper.FormStart(System.String,System.String,System.Boolean)">
  4242. <summary>
  4243. Create a &lt;form&gt; tag.
  4244. </summary>
  4245. <param name="name">name of form</param>
  4246. <param name="action">action to invoke on submit</param>
  4247. <param name="isAjax">form should be posted as ajax</param>
  4248. <returns>html code</returns>
  4249. <example>
  4250. WebHelper.FormStart("frmLogin", "/user/login", Request.IsAjax);
  4251. </example>
  4252. </member>
  4253. <member name="M:HttpServer.Helpers.WebHelper.Link(System.String,System.String,System.String[])">
  4254. <summary>
  4255. Create a link tag.
  4256. </summary>
  4257. <param name="url">url to go to</param>
  4258. <param name="title">link title (text that is displayed)</param>
  4259. <param name="htmlAttributes">html attributes, name, value, name, value</param>
  4260. <returns>html code</returns>
  4261. <example>
  4262. WebHelper.Link("/user/show/1", "Show user", "id", "showUser", "onclick", "return confirm('Are you shure?');");
  4263. </example>
  4264. </member>
  4265. <member name="M:HttpServer.Helpers.WebHelper.BuildLink(System.String,System.String,System.String[])">
  4266. <summary>
  4267. Build a link
  4268. </summary>
  4269. <param name="url">url to go to.</param>
  4270. <param name="title">title of link (displayed text)</param>
  4271. <param name="htmlAttributes">extra html attributes.</param>
  4272. <returns>a complete link</returns>
  4273. </member>
  4274. <member name="M:HttpServer.Helpers.WebHelper.BuildLink(System.String,System.String,System.String[],System.String[])">
  4275. <summary>
  4276. Build a link
  4277. </summary>
  4278. <param name="url">url to go to.</param>
  4279. <param name="title">title of link (displayed text)</param>
  4280. <param name="htmlAttributes">extra html attributes.</param>
  4281. <returns>a complete link</returns>
  4282. <param name="options">more options</param>
  4283. </member>
  4284. <member name="M:HttpServer.Helpers.WebHelper.Select(System.String,System.Collections.ICollection,HttpServer.Helpers.GetIdTitle,System.Object,System.Boolean)">
  4285. <summary>
  4286. Obsolete
  4287. </summary>
  4288. <param name="name">Obsolete</param>
  4289. <param name="collection">Obsolete</param>
  4290. <param name="getIdTitle">Obsolete</param>
  4291. <param name="selectedValue">Obsolete</param>
  4292. <param name="firstEmpty">Obsolete</param>
  4293. <returns>Obsolete</returns>
  4294. </member>
  4295. <member name="M:HttpServer.Helpers.WebHelper.Select(System.String,System.String,System.Collections.ICollection,HttpServer.Helpers.GetIdTitle,System.Object,System.Boolean)">
  4296. <summary>
  4297. Obsolete
  4298. </summary>
  4299. <param name="name">Obsolete</param>
  4300. <param name="id">Obsolete</param>
  4301. <param name="collection">Obsolete</param>
  4302. <param name="getIdTitle">Obsolete</param>
  4303. <param name="selectedValue">Obsolete</param>
  4304. <param name="firstEmpty">Obsolete</param>
  4305. <returns>Obsolete</returns>
  4306. </member>
  4307. <member name="M:HttpServer.Helpers.WebHelper.List(System.Collections.Generic.IEnumerable{System.Object},System.String)">
  4308. <summary>
  4309. Render errors into a UL with class "errors"
  4310. </summary>
  4311. <param name="className">class used by UL-tag.</param>
  4312. <param name="theList">items to list</param>
  4313. <returns>an unordered html list.</returns>
  4314. </member>
  4315. <member name="M:HttpServer.Helpers.WebHelper.List(System.Collections.Specialized.NameValueCollection,System.String)">
  4316. <summary>
  4317. Render errors into a UL with class "errors"
  4318. </summary>
  4319. <param name="className">class used by UL-tag.</param>
  4320. <param name="theList">items to list</param>
  4321. <returns>an unordered html list.</returns>
  4322. </member>
  4323. <member name="M:HttpServer.Helpers.WebHelper.Errors(System.Collections.Specialized.NameValueCollection)">
  4324. <summary>
  4325. Render errors into a UL with class "errors"
  4326. </summary>
  4327. <param name="errors"></param>
  4328. <returns></returns>
  4329. </member>
  4330. <member name="M:HttpServer.Helpers.WebHelper.GenerateHtmlAttributes(System.Text.StringBuilder,System.String[],System.String[])">
  4331. <summary>
  4332. Generates a list with html attributes.
  4333. </summary>
  4334. <param name="sb">StringBuilder that the options should be added to.</param>
  4335. <param name="firstOptions">attributes set by user.</param>
  4336. <param name="secondOptions">attributes set by any of the helper classes.</param>
  4337. </member>
  4338. <member name="M:HttpServer.Helpers.WebHelper.GenerateHtmlAttributes(System.Text.StringBuilder,System.String[])">
  4339. <summary>
  4340. Generates a list with html attributes.
  4341. </summary>
  4342. <param name="sb">StringBuilder that the options should be added to.</param>
  4343. <param name="options"></param>
  4344. </member>
  4345. <member name="T:HttpServer.ResponseCookie">
  4346. <summary>
  4347. cookie being sent back to the browser.
  4348. </summary>
  4349. <seealso cref="T:HttpServer.ResponseCookie"/>
  4350. </member>
  4351. <member name="M:HttpServer.ResponseCookie.#ctor(System.String,System.String,System.DateTime)">
  4352. <summary>
  4353. Constructor.
  4354. </summary>
  4355. <param name="id">cookie identifier</param>
  4356. <param name="content">cookie content</param>
  4357. <param name="expiresAt">cookie expiration date. Use DateTime.MinValue for session cookie.</param>
  4358. <exception cref="T:System.ArgumentNullException">id or content is null</exception>
  4359. <exception cref="T:System.ArgumentException">id is empty</exception>
  4360. </member>
  4361. <member name="M:HttpServer.ResponseCookie.#ctor(System.String,System.String,System.DateTime,System.String,System.String)">
  4362. <summary>
  4363. Create a new cookie
  4364. </summary>
  4365. <param name="name">name identifying the cookie</param>
  4366. <param name="value">cookie value</param>
  4367. <param name="expires">when the cookie expires. Setting DateTime.MinValue will delete the cookie when the session is closed.</param>
  4368. <param name="path">Path to where the cookie is valid</param>
  4369. <param name="domain">Domain that the cookie is valid for.</param>
  4370. </member>
  4371. <member name="M:HttpServer.ResponseCookie.#ctor(HttpServer.RequestCookie,System.DateTime)">
  4372. <summary>
  4373. Create a new cookie
  4374. </summary>
  4375. <param name="cookie">Name and value will be used</param>
  4376. <param name="expires">when the cookie expires.</param>
  4377. </member>
  4378. <member name="M:HttpServer.ResponseCookie.ToString">
  4379. <summary>
  4380. Gets the cookie HTML representation.
  4381. </summary>
  4382. <returns>cookie string</returns>
  4383. </member>
  4384. <member name="P:HttpServer.ResponseCookie.Expires">
  4385. <summary>
  4386. When the cookie expires.
  4387. DateTime.MinValue means that the cookie expires when the session do so.
  4388. </summary>
  4389. </member>
  4390. <member name="P:HttpServer.ResponseCookie.Path">
  4391. <summary>
  4392. Cookie is only valid under this path.
  4393. </summary>
  4394. </member>
  4395. <member name="T:HttpServer.IHttpRequest">
  4396. <summary>
  4397. Contains server side HTTP request information.
  4398. </summary>
  4399. </member>
  4400. <member name="M:HttpServer.IHttpRequest.AddHeader(System.String,System.String)">
  4401. <summary>
  4402. Called during parsing of a <see cref="T:HttpServer.IHttpRequest"/>.
  4403. </summary>
  4404. <param name="name">Name of the header, should not be URL encoded</param>
  4405. <param name="value">Value of the header, should not be URL encoded</param>
  4406. <exception cref="T:HttpServer.Exceptions.BadRequestException">If a header is incorrect.</exception>
  4407. </member>
  4408. <member name="M:HttpServer.IHttpRequest.AddToBody(System.Byte[],System.Int32,System.Int32)">
  4409. <summary>
  4410. Add bytes to the body
  4411. </summary>
  4412. <param name="bytes">buffer to read bytes from</param>
  4413. <param name="offset">where to start read</param>
  4414. <param name="length">number of bytes to read</param>
  4415. <returns>Number of bytes actually read (same as length unless we got all body bytes).</returns>
  4416. <exception cref="T:System.InvalidOperationException">If body is not writable</exception>
  4417. <exception cref="T:System.ArgumentNullException"><c>bytes</c> is null.</exception>
  4418. <exception cref="T:System.ArgumentOutOfRangeException"><c>offset</c> is out of range.</exception>
  4419. </member>
  4420. <member name="M:HttpServer.IHttpRequest.Clear">
  4421. <summary>
  4422. Clear everything in the request
  4423. </summary>
  4424. </member>
  4425. <member name="M:HttpServer.IHttpRequest.DecodeBody(HttpServer.FormDecoders.FormDecoderProvider)">
  4426. <summary>
  4427. Decode body into a form.
  4428. </summary>
  4429. <param name="providers">A list with form decoders.</param>
  4430. <exception cref="T:System.IO.InvalidDataException">If body contents is not valid for the chosen decoder.</exception>
  4431. <exception cref="T:System.InvalidOperationException">If body is still being transferred.</exception>
  4432. </member>
  4433. <member name="M:HttpServer.IHttpRequest.SetCookies(HttpServer.RequestCookies)">
  4434. <summary>
  4435. Sets the cookies.
  4436. </summary>
  4437. <param name="cookies">The cookies.</param>
  4438. </member>
  4439. <member name="M:HttpServer.IHttpRequest.CreateResponse(HttpServer.IHttpClientContext)">
  4440. <summary>
  4441. Create a response object.
  4442. </summary>
  4443. <param name="context">Context for the connected client.</param>
  4444. <returns>A new <see cref="T:HttpServer.IHttpResponse"/>.</returns>
  4445. </member>
  4446. <member name="P:HttpServer.IHttpRequest.AcceptTypes">
  4447. <summary>
  4448. Gets kind of types accepted by the client.
  4449. </summary>
  4450. </member>
  4451. <member name="P:HttpServer.IHttpRequest.Body">
  4452. <summary>
  4453. Gets or sets body stream.
  4454. </summary>
  4455. </member>
  4456. <member name="P:HttpServer.IHttpRequest.BodyIsComplete">
  4457. <summary>
  4458. Gets whether the body is complete.
  4459. </summary>
  4460. </member>
  4461. <member name="P:HttpServer.IHttpRequest.Connection">
  4462. <summary>
  4463. Gets or sets kind of connection used for the session.
  4464. </summary>
  4465. </member>
  4466. <member name="P:HttpServer.IHttpRequest.ContentLength">
  4467. <summary>
  4468. Gets or sets number of bytes in the body.
  4469. </summary>
  4470. </member>
  4471. <member name="P:HttpServer.IHttpRequest.Cookies">
  4472. <summary>
  4473. Gets cookies that was sent with the request.
  4474. </summary>
  4475. </member>
  4476. <member name="P:HttpServer.IHttpRequest.Form">
  4477. <summary>
  4478. Gets form parameters.
  4479. </summary>
  4480. </member>
  4481. <member name="P:HttpServer.IHttpRequest.Headers">
  4482. <summary>
  4483. Gets headers sent by the client.
  4484. </summary>
  4485. </member>
  4486. <member name="P:HttpServer.IHttpRequest.HttpVersion">
  4487. <summary>
  4488. Gets or sets version of HTTP protocol that's used.
  4489. </summary>
  4490. <remarks>
  4491. Probably <see cref="F:HttpServer.HttpHelper.HTTP10"/> or <see cref="F:HttpServer.HttpHelper.HTTP11"/>.
  4492. </remarks>
  4493. <seealso cref="T:HttpServer.HttpHelper"/>
  4494. </member>
  4495. <member name="P:HttpServer.IHttpRequest.IsAjax">
  4496. <summary>
  4497. Gets whether the request was made by Ajax (Asynchronous JavaScript)
  4498. </summary>
  4499. </member>
  4500. <member name="P:HttpServer.IHttpRequest.Method">
  4501. <summary>
  4502. Gets or sets requested method.
  4503. </summary>
  4504. <remarks>
  4505. Will always be in upper case.
  4506. </remarks>
  4507. <see cref="P:HttpServer.IHttpRequest.Method"/>
  4508. </member>
  4509. <member name="P:HttpServer.IHttpRequest.Param">
  4510. <summary>
  4511. Gets parameter from <see cref="P:HttpServer.IHttpRequest.QueryString"/> or <see cref="P:HttpServer.IHttpRequest.Form"/>.
  4512. </summary>
  4513. </member>
  4514. <member name="P:HttpServer.IHttpRequest.QueryString">
  4515. <summary>
  4516. Gets variables sent in the query string
  4517. </summary>
  4518. </member>
  4519. <member name="P:HttpServer.IHttpRequest.Uri">
  4520. <summary>
  4521. Gets or sets requested URI.
  4522. </summary>
  4523. </member>
  4524. <member name="P:HttpServer.IHttpRequest.UriParts">
  4525. <summary>
  4526. Gets URI absolute path divided into parts.
  4527. </summary>
  4528. <example>
  4529. // URI is: http://gauffin.com/code/tiny/
  4530. Console.WriteLine(request.UriParts[0]); // result: code
  4531. Console.WriteLine(request.UriParts[1]); // result: tiny
  4532. </example>
  4533. <remarks>
  4534. If you're using controllers than the first part is controller name,
  4535. the second part is method name and the third part is Id property.
  4536. </remarks>
  4537. <seealso cref="P:HttpServer.IHttpRequest.Uri"/>
  4538. </member>
  4539. <member name="P:HttpServer.IHttpRequest.UriPath">
  4540. <summary>
  4541. Gets or sets path and query.
  4542. </summary>
  4543. <see cref="P:HttpServer.IHttpRequest.Uri"/>
  4544. <remarks>
  4545. Are only used during request parsing. Cannot be set after "Host" header have been
  4546. added.
  4547. </remarks>
  4548. </member>
  4549. <member name="T:HttpServer.Helpers.GetIdTitle">
  4550. <summary>
  4551. Delegate used by <see cref="M:HttpServer.Helpers.FormHelper.Select(System.String,System.Collections.IEnumerable,HttpServer.Helpers.GetIdTitle,System.Object,System.Boolean)"/> to populate select options.
  4552. </summary>
  4553. <param name="obj">current object (for instance a User).</param>
  4554. <param name="id">Text that should be displayed in the value part of a &lt;optiongt;-tag.</param>
  4555. <param name="title">Text shown in the select list.</param>
  4556. <example>
  4557. // Class that is going to be used in a SELECT-tag.
  4558. public class User
  4559. {
  4560. private readonly string _realName;
  4561. private readonly int _id;
  4562. public User(int id, string realName)
  4563. {
  4564. _id = id;
  4565. _realName = realName;
  4566. }
  4567. public string RealName
  4568. {
  4569. get { return _realName; }
  4570. }
  4571. public int Id
  4572. {
  4573. get { return _id; }
  4574. }
  4575. }
  4576. // Using an inline delegate to generate the select list
  4577. public void UserInlineDelegate()
  4578. {
  4579. List&lt;User&gt; items = new List&lt;User&gt;();
  4580. items.Add(new User(1, "adam"));
  4581. items.Add(new User(2, "bertial"));
  4582. items.Add(new User(3, "david"));
  4583. string htmlSelect = Select("users", "users", items, delegate(object o, out object id, out object value)
  4584. {
  4585. User user = (User)o;
  4586. id = user.Id;
  4587. value = user.RealName;
  4588. }, 2, true);
  4589. }
  4590. // Using an method as delegate to generate the select list.
  4591. public void UseExternalDelegate()
  4592. {
  4593. List&lt;User&gt; items = new List&lt;User&gt;();
  4594. items.Add(new User(1, "adam"));
  4595. items.Add(new User(2, "bertial"));
  4596. items.Add(new User(3, "david"));
  4597. string htmlSelect = Select("users", "users", items, UserOptions, 1, true);
  4598. }
  4599. // delegate returning id and title
  4600. public static void UserOptions(object o, out object id, out object title)
  4601. {
  4602. User user = (User)o;
  4603. id = user.Id;
  4604. value = user.RealName;
  4605. } /// </example>
  4606. </member>
  4607. <member name="T:HttpServer.Exceptions.UnauthorizedException">
  4608. <summary>
  4609. The request requires user authentication. The response MUST include a
  4610. WWW-Authenticate header field (section 14.47) containing a challenge
  4611. applicable to the requested resource.
  4612. The client MAY repeat the request with a suitable Authorization header
  4613. field (section 14.8). If the request already included Authorization
  4614. credentials, then the 401 response indicates that authorization has been
  4615. refused for those credentials. If the 401 response contains the same challenge
  4616. as the prior response, and the user agent has already attempted authentication
  4617. at least once, then the user SHOULD be presented the entity that was given in the response,
  4618. since that entity might include relevant diagnostic information.
  4619. HTTP access authentication is explained in rfc2617:
  4620. http://www.ietf.org/rfc/rfc2617.txt
  4621. (description is taken from
  4622. http://www.submissionchamber.com/help-guides/error-codes.php#sec10.4.2)
  4623. </summary>
  4624. </member>
  4625. <member name="M:HttpServer.Exceptions.UnauthorizedException.#ctor">
  4626. <summary>
  4627. Create a new unauhtorized exception.
  4628. </summary>
  4629. <seealso cref="T:HttpServer.Exceptions.UnauthorizedException"/>
  4630. </member>
  4631. <member name="M:HttpServer.Exceptions.UnauthorizedException.#ctor(System.String,System.Exception)">
  4632. <summary>
  4633. Create a new unauhtorized exception.
  4634. </summary>
  4635. <param name="message">reason to why the request was unauthorized.</param>
  4636. <param name="inner">inner exception</param>
  4637. </member>
  4638. <member name="M:HttpServer.Exceptions.UnauthorizedException.#ctor(System.String)">
  4639. <summary>
  4640. Create a new unauhtorized exception.
  4641. </summary>
  4642. <param name="message">reason to why the request was unauthorized.</param>
  4643. </member>
  4644. <member name="T:HttpServer.Exceptions.NotFoundException">
  4645. <summary>
  4646. The requested resource was not found in the web server.
  4647. </summary>
  4648. </member>
  4649. <member name="M:HttpServer.Exceptions.NotFoundException.#ctor(System.String,System.Exception)">
  4650. <summary>
  4651. Create a new exception
  4652. </summary>
  4653. <param name="message">message describing the error</param>
  4654. <param name="inner">inner exception</param>
  4655. </member>
  4656. <member name="M:HttpServer.Exceptions.NotFoundException.#ctor(System.String)">
  4657. <summary>
  4658. Create a new exception
  4659. </summary>
  4660. <param name="message">message describing the error</param>
  4661. </member>
  4662. <member name="T:HttpServer.ConnectionType">
  4663. <summary>
  4664. Type of HTTP connection
  4665. </summary>
  4666. </member>
  4667. <member name="F:HttpServer.ConnectionType.Close">
  4668. <summary>
  4669. Connection is closed after each request-response
  4670. </summary>
  4671. </member>
  4672. <member name="F:HttpServer.ConnectionType.KeepAlive">
  4673. <summary>
  4674. Connection is kept alive for X seconds (unless another request have been made)
  4675. </summary>
  4676. </member>
  4677. <member name="T:HttpServer.DisconnectedEventArgs">
  4678. <summary>
  4679. A <see cref="T:HttpServer.IHttpClientContext"/> have been disconnected.
  4680. </summary>
  4681. </member>
  4682. <member name="M:HttpServer.DisconnectedEventArgs.#ctor(System.Net.Sockets.SocketError)">
  4683. <summary>
  4684. Initializes a new instance of the <see cref="T:HttpServer.DisconnectedEventArgs"/> class.
  4685. </summary>
  4686. <param name="error">Reason to disconnection.</param>
  4687. </member>
  4688. <member name="P:HttpServer.DisconnectedEventArgs.Error">
  4689. <summary>
  4690. Gets reason to why client disconnected.
  4691. </summary>
  4692. </member>
  4693. <member name="T:HttpServer.RequestEventArgs">
  4694. <summary>
  4695. </summary>
  4696. </member>
  4697. <member name="M:HttpServer.RequestEventArgs.#ctor(HttpServer.IHttpRequest)">
  4698. <summary>
  4699. Initializes a new instance of the <see cref="T:HttpServer.RequestEventArgs"/> class.
  4700. </summary>
  4701. <param name="request">The request.</param>
  4702. </member>
  4703. <member name="P:HttpServer.RequestEventArgs.Request">
  4704. <summary>
  4705. Gets received request.
  4706. </summary>
  4707. </member>
  4708. <member name="T:HttpServer.HttpRequest">
  4709. <summary>
  4710. Contains server side HTTP request information.
  4711. </summary>
  4712. </member>
  4713. <member name="F:HttpServer.HttpRequest.UriSplitters">
  4714. <summary>
  4715. Chars used to split an URL path into multiple parts.
  4716. </summary>
  4717. </member>
  4718. <member name="M:HttpServer.HttpRequest.AssignForm(HttpServer.HttpForm)">
  4719. <summary>
  4720. Assign a form.
  4721. </summary>
  4722. <param name="form"></param>
  4723. </member>
  4724. <member name="M:HttpServer.HttpRequest.Clone">
  4725. <summary>
  4726. Creates a new object that is a copy of the current instance.
  4727. </summary>
  4728. <returns>
  4729. A new object that is a copy of this instance.
  4730. </returns>
  4731. <filterpriority>2</filterpriority>
  4732. </member>
  4733. <member name="M:HttpServer.HttpRequest.DecodeBody(HttpServer.FormDecoders.FormDecoderProvider)">
  4734. <summary>
  4735. Decode body into a form.
  4736. </summary>
  4737. <param name="providers">A list with form decoders.</param>
  4738. <exception cref="T:System.IO.InvalidDataException">If body contents is not valid for the chosen decoder.</exception>
  4739. <exception cref="T:System.InvalidOperationException">If body is still being transferred.</exception>
  4740. </member>
  4741. <member name="M:HttpServer.HttpRequest.SetCookies(HttpServer.RequestCookies)">
  4742. <summary>
  4743. Cookies
  4744. </summary>
  4745. <param name="cookies">the cookies</param>
  4746. </member>
  4747. <member name="M:HttpServer.HttpRequest.CreateResponse(HttpServer.IHttpClientContext)">
  4748. <summary>
  4749. Create a response object.
  4750. </summary>
  4751. <returns>A new <see cref="T:HttpServer.IHttpResponse"/>.</returns>
  4752. </member>
  4753. <member name="M:HttpServer.HttpRequest.AddHeader(System.String,System.String)">
  4754. <summary>
  4755. Called during parsing of a <see cref="T:HttpServer.IHttpRequest"/>.
  4756. </summary>
  4757. <param name="name">Name of the header, should not be URL encoded</param>
  4758. <param name="value">Value of the header, should not be URL encoded</param>
  4759. <exception cref="T:HttpServer.Exceptions.BadRequestException">If a header is incorrect.</exception>
  4760. </member>
  4761. <member name="M:HttpServer.HttpRequest.AddToBody(System.Byte[],System.Int32,System.Int32)">
  4762. <summary>
  4763. Add bytes to the body
  4764. </summary>
  4765. <param name="bytes">buffer to read bytes from</param>
  4766. <param name="offset">where to start read</param>
  4767. <param name="length">number of bytes to read</param>
  4768. <returns>Number of bytes actually read (same as length unless we got all body bytes).</returns>
  4769. <exception cref="T:System.InvalidOperationException">If body is not writable</exception>
  4770. <exception cref="T:System.ArgumentNullException"><c>bytes</c> is null.</exception>
  4771. <exception cref="T:System.ArgumentOutOfRangeException"><c>offset</c> is out of range.</exception>
  4772. </member>
  4773. <member name="M:HttpServer.HttpRequest.Clear">
  4774. <summary>
  4775. Clear everything in the request
  4776. </summary>
  4777. </member>
  4778. <member name="P:HttpServer.HttpRequest.Secure">
  4779. <summary>
  4780. Gets or sets a value indicating whether this <see cref="T:HttpServer.HttpRequest"/> is secure.
  4781. </summary>
  4782. </member>
  4783. <member name="P:HttpServer.HttpRequest.UriPath">
  4784. <summary>
  4785. Path and query (will be merged with the host header) and put in Uri
  4786. </summary>
  4787. <see cref="P:HttpServer.HttpRequest.Uri"/>
  4788. </member>
  4789. <member name="P:HttpServer.HttpRequest.BodyIsComplete">
  4790. <summary>
  4791. Gets whether the body is complete.
  4792. </summary>
  4793. </member>
  4794. <member name="P:HttpServer.HttpRequest.AcceptTypes">
  4795. <summary>
  4796. Gets kind of types accepted by the client.
  4797. </summary>
  4798. </member>
  4799. <member name="P:HttpServer.HttpRequest.Body">
  4800. <summary>
  4801. Gets or sets body stream.
  4802. </summary>
  4803. </member>
  4804. <member name="P:HttpServer.HttpRequest.Connection">
  4805. <summary>
  4806. Gets or sets kind of connection used for the session.
  4807. </summary>
  4808. </member>
  4809. <member name="P:HttpServer.HttpRequest.ContentLength">
  4810. <summary>
  4811. Gets or sets number of bytes in the body.
  4812. </summary>
  4813. </member>
  4814. <member name="P:HttpServer.HttpRequest.Headers">
  4815. <summary>
  4816. Gets headers sent by the client.
  4817. </summary>
  4818. </member>
  4819. <member name="P:HttpServer.HttpRequest.HttpVersion">
  4820. <summary>
  4821. Gets or sets version of HTTP protocol that's used.
  4822. </summary>
  4823. <remarks>
  4824. Probably <see cref="F:HttpServer.HttpHelper.HTTP10"/> or <see cref="F:HttpServer.HttpHelper.HTTP11"/>.
  4825. </remarks>
  4826. <seealso cref="T:HttpServer.HttpHelper"/>
  4827. </member>
  4828. <member name="P:HttpServer.HttpRequest.Method">
  4829. <summary>
  4830. Gets or sets requested method.
  4831. </summary>
  4832. <value></value>
  4833. <remarks>
  4834. Will always be in upper case.
  4835. </remarks>
  4836. <see cref="!:HttpServer.Method"/>
  4837. </member>
  4838. <member name="P:HttpServer.HttpRequest.QueryString">
  4839. <summary>
  4840. Gets variables sent in the query string
  4841. </summary>
  4842. </member>
  4843. <member name="P:HttpServer.HttpRequest.Uri">
  4844. <summary>
  4845. Gets or sets requested URI.
  4846. </summary>
  4847. </member>
  4848. <member name="P:HttpServer.HttpRequest.UriParts">
  4849. <summary>
  4850. Uri absolute path splitted into parts.
  4851. </summary>
  4852. <example>
  4853. // uri is: http://gauffin.com/code/tiny/
  4854. Console.WriteLine(request.UriParts[0]); // result: code
  4855. Console.WriteLine(request.UriParts[1]); // result: tiny
  4856. </example>
  4857. <remarks>
  4858. If you're using controllers than the first part is controller name,
  4859. the second part is method name and the third part is Id property.
  4860. </remarks>
  4861. <seealso cref="P:HttpServer.HttpRequest.Uri"/>
  4862. </member>
  4863. <member name="P:HttpServer.HttpRequest.Param">
  4864. <summary>
  4865. Gets parameter from <see cref="P:HttpServer.HttpRequest.QueryString"/> or <see cref="P:HttpServer.HttpRequest.Form"/>.
  4866. </summary>
  4867. </member>
  4868. <member name="P:HttpServer.HttpRequest.Form">
  4869. <summary>
  4870. Gets form parameters.
  4871. </summary>
  4872. </member>
  4873. <member name="P:HttpServer.HttpRequest.IsAjax">
  4874. <summary>
  4875. Gets whether the request was made by Ajax (Asynchronous JavaScript)
  4876. </summary>
  4877. </member>
  4878. <member name="P:HttpServer.HttpRequest.Cookies">
  4879. <summary>
  4880. Gets cookies that was sent with the request.
  4881. </summary>
  4882. </member>
  4883. <member name="T:HttpServer.HttpInputItem">
  4884. <summary>
  4885. represents a HTTP input item. Each item can have multiple sub items, a sub item
  4886. is made in a HTML form by using square brackets
  4887. </summary>
  4888. <example>
  4889. // <input type="text" name="user[FirstName]" value="jonas" /> becomes:
  4890. Console.WriteLine("Value: {0}", form["user"]["FirstName"].Value);
  4891. </example>
  4892. <remarks>
  4893. All names in a form SHOULD be in lowercase.
  4894. </remarks>
  4895. </member>
  4896. <member name="F:HttpServer.HttpInputItem.Empty">
  4897. <summary> Representation of a non-initialized <see cref="T:HttpServer.HttpInputItem"/>.</summary>
  4898. </member>
  4899. <member name="M:HttpServer.HttpInputItem.#ctor(System.String,System.String)">
  4900. <summary>
  4901. Initializes an input item setting its name/identifier and value
  4902. </summary>
  4903. <param name="name">Parameter name/id</param>
  4904. <param name="value">Parameter value</param>
  4905. </member>
  4906. <member name="M:HttpServer.HttpInputItem.#ctor(HttpServer.HttpInputItem)">
  4907. <summary>Creates a deep copy of the item specified</summary>
  4908. <param name="item">The item to copy</param>
  4909. <remarks>The function makes a deep copy of quite a lot which can be slow</remarks>
  4910. </member>
  4911. <member name="M:HttpServer.HttpInputItem.Add(System.String)">
  4912. <summary>
  4913. Add another value to this item
  4914. </summary>
  4915. <param name="value">Value to add.</param>
  4916. <exception cref="T:System.InvalidOperationException">Cannot add stuff to <see cref="F:HttpServer.HttpInput.Empty"/>.</exception>
  4917. </member>
  4918. <member name="M:HttpServer.HttpInputItem.Contains(System.String)">
  4919. <summary>
  4920. checks if a sub-item exists (and has a value).
  4921. </summary>
  4922. <param name="name">name in lower case</param>
  4923. <returns>true if the sub-item exists and has a value; otherwise false.</returns>
  4924. </member>
  4925. <member name="M:HttpServer.HttpInputItem.ToString">
  4926. <summary> Returns a formatted representation of the instance with the values of all contained parameters </summary>
  4927. </member>
  4928. <member name="M:HttpServer.HttpInputItem.ToString(System.String,System.Boolean)">
  4929. <summary>
  4930. Outputs the string in a formatted manner
  4931. </summary>
  4932. <param name="prefix">A prefix to append, used internally</param>
  4933. <param name="asQuerySting">produce a query string</param>
  4934. </member>
  4935. <member name="M:HttpServer.HttpInputItem.Add(System.String,System.String)">
  4936. <summary>
  4937. Add a sub item.
  4938. </summary>
  4939. <param name="name">Can contain array formatting, the item is then parsed and added in multiple levels</param>
  4940. <param name="value">Value to add.</param>
  4941. <exception cref="T:System.ArgumentNullException">Argument is null.</exception>
  4942. <exception cref="T:System.InvalidOperationException">Cannot add stuff to <see cref="F:HttpServer.HttpInput.Empty"/>.</exception>
  4943. </member>
  4944. <member name="M:HttpServer.HttpInputItem.System#Collections#Generic#IEnumerable{HttpServer#HttpInputItem}#GetEnumerator">
  4945. <summary>
  4946. Returns an enumerator that iterates through the collection.
  4947. </summary>
  4948. <returns>
  4949. A <see cref="T:System.Collections.Generic.IEnumerator`1"></see> that can be used to iterate through the collection.
  4950. </returns>
  4951. <filterpriority>1</filterpriority>
  4952. </member>
  4953. <member name="M:HttpServer.HttpInputItem.GetEnumerator">
  4954. <summary>
  4955. Returns an enumerator that iterates through a collection.
  4956. </summary>
  4957. <returns>
  4958. An <see cref="T:System.Collections.IEnumerator"></see> object that can be used to iterate through the collection.
  4959. </returns>
  4960. <filterpriority>2</filterpriority>
  4961. </member>
  4962. <member name="M:HttpServer.HttpInputItem.ToString(System.String)">
  4963. <summary>
  4964. Outputs the string in a formatted manner
  4965. </summary>
  4966. <param name="prefix">A prefix to append, used internally</param>
  4967. <returns></returns>
  4968. </member>
  4969. <member name="P:HttpServer.HttpInputItem.Count">
  4970. <summary>
  4971. Number of values
  4972. </summary>
  4973. </member>
  4974. <member name="P:HttpServer.HttpInputItem.Item(System.String)">
  4975. <summary>
  4976. Get a sub item
  4977. </summary>
  4978. <param name="name">name in lower case.</param>
  4979. <returns><see cref="F:HttpServer.HttpInputItem.Empty"/> if no item was found.</returns>
  4980. </member>
  4981. <member name="P:HttpServer.HttpInputItem.Name">
  4982. <summary>
  4983. Name of item (in lower case).
  4984. </summary>
  4985. </member>
  4986. <member name="P:HttpServer.HttpInputItem.Value">
  4987. <summary>
  4988. Returns the first value, or null if no value exist.
  4989. </summary>
  4990. </member>
  4991. <member name="P:HttpServer.HttpInputItem.LastValue">
  4992. <summary>
  4993. Returns the last value, or null if no value exist.
  4994. </summary>
  4995. </member>
  4996. <member name="P:HttpServer.HttpInputItem.Values">
  4997. <summary>
  4998. Returns the list with values.
  4999. </summary>
  5000. </member>
  5001. <member name="P:HttpServer.HttpInputItem.HttpServer#IHttpInput#Item(System.String)">
  5002. <summary>
  5003. </summary>
  5004. <param name="name">name in lower case</param>
  5005. <returns></returns>
  5006. </member>
  5007. <member name="T:HttpServer.HttpHelper">
  5008. <summary>
  5009. Generic helper functions for HTTP
  5010. </summary>
  5011. </member>
  5012. <member name="F:HttpServer.HttpHelper.HTTP10">
  5013. <summary>
  5014. Version string for HTTP v1.0
  5015. </summary>
  5016. </member>
  5017. <member name="F:HttpServer.HttpHelper.HTTP11">
  5018. <summary>
  5019. Version string for HTTP v1.1
  5020. </summary>
  5021. </member>
  5022. <member name="F:HttpServer.HttpHelper.EmptyUri">
  5023. <summary>
  5024. An empty URI
  5025. </summary>
  5026. </member>
  5027. <member name="M:HttpServer.HttpHelper.ParseQueryString(System.String)">
  5028. <summary>
  5029. Parses a query string.
  5030. </summary>
  5031. <param name="queryString">Query string (URI encoded)</param>
  5032. <returns>A <see cref="T:HttpServer.HttpInput"/> object if successful; otherwise <see cref="F:HttpServer.HttpInput.Empty"/></returns>
  5033. <exception cref="T:System.ArgumentNullException"><c>queryString</c> is null.</exception>
  5034. <exception cref="T:System.FormatException">If string cannot be parsed.</exception>
  5035. </member>
  5036. <member name="T:HttpServer.Parser.RequestLineEventArgs">
  5037. <summary>
  5038. Used when the request line have been successfully parsed.
  5039. </summary>
  5040. </member>
  5041. <member name="M:HttpServer.Parser.RequestLineEventArgs.#ctor(System.String,System.String,System.String)">
  5042. <summary>
  5043. Initializes a new instance of the <see cref="T:HttpServer.Parser.RequestLineEventArgs"/> class.
  5044. </summary>
  5045. <param name="httpMethod">The HTTP method.</param>
  5046. <param name="uriPath">The URI path.</param>
  5047. <param name="httpVersion">The HTTP version.</param>
  5048. </member>
  5049. <member name="M:HttpServer.Parser.RequestLineEventArgs.#ctor">
  5050. <summary>
  5051. Initializes a new instance of the <see cref="T:HttpServer.Parser.RequestLineEventArgs"/> class.
  5052. </summary>
  5053. </member>
  5054. <member name="P:HttpServer.Parser.RequestLineEventArgs.HttpMethod">
  5055. <summary>
  5056. Gets or sets http method.
  5057. </summary>
  5058. <remarks>
  5059. Should be one of the methods declared in <see cref="T:HttpServer.Method"/>.
  5060. </remarks>
  5061. </member>
  5062. <member name="P:HttpServer.Parser.RequestLineEventArgs.HttpVersion">
  5063. <summary>
  5064. Gets or sets the version of the HTTP protocol that the client want to use.
  5065. </summary>
  5066. </member>
  5067. <member name="P:HttpServer.Parser.RequestLineEventArgs.UriPath">
  5068. <summary>
  5069. Gets or sets requested URI path.
  5070. </summary>
  5071. </member>
  5072. <member name="T:HttpServer.Method">
  5073. <summary>
  5074. Contains all HTTP Methods (according to the HTTP 1.1 specification)
  5075. <para>
  5076. See: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
  5077. </para>
  5078. </summary>
  5079. </member>
  5080. <member name="F:HttpServer.Method.Delete">
  5081. <summary>
  5082. The DELETE method requests that the origin server delete the resource identified by the Request-URI.
  5083. </summary>
  5084. <remarks>
  5085. <para>
  5086. This method MAY be overridden by human intervention (or other means) on the origin server.
  5087. The client cannot be guaranteed that the operation has been carried out, even if the status code
  5088. returned from the origin server indicates that the action has been completed successfully.
  5089. </para>
  5090. <para>
  5091. However, the server SHOULD NOT indicate success unless, at the time the response is given,
  5092. it intends to delete the resource or move it to an inaccessible location.
  5093. </para>
  5094. <para>
  5095. A successful response SHOULD be 200 (OK) if the response includes an entity describing the status,
  5096. 202 (Accepted) if the action has not yet been enacted,
  5097. or 204 (No Content) if the action has been enacted but the response does not include an entity.
  5098. </para>
  5099. <para>
  5100. If the request passes through a cache and the Request-URI identifies one or more currently cached entities,
  5101. those entries SHOULD be treated as stale. Responses to this method are not cacheable.
  5102. </para>
  5103. </remarks>
  5104. </member>
  5105. <member name="F:HttpServer.Method.Get">
  5106. <summary>
  5107. The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI.
  5108. </summary>
  5109. <remarks>
  5110. <para>
  5111. If the Request-URI refers to a data-producing process, it is the produced data which shall be returned as the
  5112. entity in the response and not the source text of the process, unless that text happens to be the output of the process.
  5113. </para>
  5114. <para>
  5115. The semantics of the GET method change to a "conditional GET" if the request message includes an
  5116. If-Modified-Since, If-Unmodified-Since, If-Match, If-None-Match, or If-Range header field.
  5117. A conditional GET method requests that the entity be transferred only under the circumstances described
  5118. by the conditional header field(s). The conditional GET method is intended to reduce unnecessary network
  5119. usage by allowing cached entities to be refreshed without requiring multiple requests or transferring
  5120. data already held by the client.
  5121. </para>
  5122. </remarks>
  5123. </member>
  5124. <member name="F:HttpServer.Method.Header">
  5125. <summary>
  5126. The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response.
  5127. </summary>
  5128. <remarks>
  5129. The meta information contained in the HTTP headers in response to a HEAD request SHOULD be identical to the
  5130. information sent in response to a GET request. This method can be used for obtaining meta information about
  5131. the entity implied by the request without transferring the entity-body itself.
  5132. This method is often used for testing hypertext links for validity, accessibility, and recent modification.
  5133. </remarks>
  5134. </member>
  5135. <member name="F:HttpServer.Method.Options">
  5136. <summary>
  5137. <para>The OPTIONS method represents a request for information about the communication options available on the request/response chain identified by the Request-URI.</para>
  5138. </summary>
  5139. <remarks>
  5140. <para>This method allows the client to determine the options and/or requirements associated with a resource, or the capabilities of a server, without implying a resource action or initiating a resource retrieval.</para>
  5141. </remarks>
  5142. </member>
  5143. <member name="F:HttpServer.Method.Post">
  5144. <summary>
  5145. The POST method is used to request that the origin server accept the entity enclosed
  5146. in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line.
  5147. </summary>
  5148. <remarks>
  5149. POST is designed to allow a uniform method to cover the following functions:
  5150. <list type="bullet">
  5151. <item>
  5152. Annotation of existing resources;
  5153. </item><item>
  5154. Posting a message to a bulletin board, newsgroup, mailing list, or similar group of articles;
  5155. </item><item>
  5156. Providing a block of data, such as the result of submitting a form, to a data-handling process;
  5157. </item><item>
  5158. Extending a database through an append operation.
  5159. </item>
  5160. </list>
  5161. <para>
  5162. If a resource has been created on the origin server, the response SHOULD be 201 (Created) and
  5163. contain an entity which describes the status of the request and refers to the new resource, and a
  5164. Location header (see section 14.30).
  5165. </para>
  5166. <para>
  5167. The action performed by the POST method might not result in a resource that can be identified by a URI.
  5168. In this case, either 200 (OK) or 204 (No Content) is the appropriate response status, depending on
  5169. whether or not the response includes an entity that describes the result.
  5170. </para><para>
  5171. Responses to this method are not cacheable, unless the response includes appropriate Cache-Control
  5172. or Expires header fields. However, the 303 (See Other) response can be used to direct the user agent
  5173. to retrieve a cacheable resource.
  5174. </para>
  5175. </remarks>
  5176. </member>
  5177. <member name="F:HttpServer.Method.Put">
  5178. <summary>
  5179. The PUT method requests that the enclosed entity be stored under the supplied Request-URI.
  5180. </summary>
  5181. <remarks>
  5182. <list type="bullet">
  5183. <item>
  5184. If the Request-URI refers to an already existing resource, the enclosed entity SHOULD be considered as a
  5185. modified version of the one residing on the origin server.
  5186. </item><item>
  5187. If the Request-URI does not point to an existing resource, and that URI is capable of being defined as a new
  5188. resource by the requesting user agent, the origin server can create the resource with that URI.
  5189. </item><item>
  5190. If a new resource is created, the origin server MUST inform the user agent via the 201 (Created) response.
  5191. </item><item>
  5192. If an existing resource is modified, either the 200 (OK) or 204 (No Content) response codes SHOULD be sent to
  5193. indicate successful completion of the request.
  5194. </item><item>
  5195. If the resource could not be created or modified with the Request-URI, an appropriate error response SHOULD be
  5196. given that reflects the nature of the problem.
  5197. </item>
  5198. </list>
  5199. <para>
  5200. The recipient of the entity MUST NOT ignore any Content-* (e.g. Content-Range) headers that it does not
  5201. understand or implement and MUST return a 501 (Not Implemented) response in such cases.
  5202. </para>
  5203. </remarks>
  5204. </member>
  5205. <member name="F:HttpServer.Method.Trace">
  5206. <summary>
  5207. The TRACE method is used to invoke a remote, application-layer loop- back of the request message.
  5208. </summary>
  5209. </member>
  5210. <member name="T:HttpServer.Methods">
  5211. <summary>
  5212. Contains all HTTP Methods (according to the HTTP 1.1 specification)
  5213. <para>
  5214. See: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
  5215. </para>
  5216. </summary>
  5217. </member>
  5218. <member name="F:HttpServer.Methods.Delete">
  5219. <summary>
  5220. The DELETE method requests that the origin server delete the resource identified by the Request-URI.
  5221. </summary>
  5222. <remarks>
  5223. <para>
  5224. This method MAY be overridden by human intervention (or other means) on the origin server.
  5225. The client cannot be guaranteed that the operation has been carried out, even if the status code
  5226. returned from the origin server indicates that the action has been completed successfully.
  5227. </para>
  5228. <para>
  5229. However, the server SHOULD NOT indicate success unless, at the time the response is given,
  5230. it intends to delete the resource or move it to an inaccessible location.
  5231. </para>
  5232. <para>
  5233. A successful response SHOULD be 200 (OK) if the response includes an entity describing the status,
  5234. 202 (Accepted) if the action has not yet been enacted,
  5235. or 204 (No Content) if the action has been enacted but the response does not include an entity.
  5236. </para>
  5237. <para>
  5238. If the request passes through a cache and the Request-URI identifies one or more currently cached entities,
  5239. those entries SHOULD be treated as stale. Responses to this method are not cacheable.
  5240. </para>
  5241. </remarks>
  5242. </member>
  5243. <member name="F:HttpServer.Methods.Get">
  5244. <summary>
  5245. The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI.
  5246. </summary>
  5247. <remarks>
  5248. <para>
  5249. If the Request-URI refers to a data-producing process, it is the produced data which shall be returned as the
  5250. entity in the response and not the source text of the process, unless that text happens to be the output of the process.
  5251. </para>
  5252. <para>
  5253. The semantics of the GET method change to a "conditional GET" if the request message includes an
  5254. If-Modified-Since, If-Unmodified-Since, If-Match, If-None-Match, or If-Range header field.
  5255. A conditional GET method requests that the entity be transferred only under the circumstances described
  5256. by the conditional header field(s). The conditional GET method is intended to reduce unnecessary network
  5257. usage by allowing cached entities to be refreshed without requiring multiple requests or transferring
  5258. data already held by the client.
  5259. </para>
  5260. </remarks>
  5261. </member>
  5262. <member name="F:HttpServer.Methods.Header">
  5263. <summary>
  5264. The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response.
  5265. </summary>
  5266. <remarks>
  5267. The meta information contained in the HTTP headers in response to a HEAD request SHOULD be identical to the
  5268. information sent in response to a GET request. This method can be used for obtaining meta information about
  5269. the entity implied by the request without transferring the entity-body itself.
  5270. This method is often used for testing hypertext links for validity, accessibility, and recent modification.
  5271. </remarks>
  5272. </member>
  5273. <member name="F:HttpServer.Methods.Options">
  5274. <summary>
  5275. <para>The OPTIONS method represents a request for information about the communication options available on the request/response chain identified by the Request-URI.</para>
  5276. </summary>
  5277. <remarks>
  5278. <para>This method allows the client to determine the options and/or requirements associated with a resource, or the capabilities of a server, without implying a resource action or initiating a resource retrieval.</para>
  5279. </remarks>
  5280. </member>
  5281. <member name="F:HttpServer.Methods.Post">
  5282. <summary>
  5283. The POST method is used to request that the origin server accept the entity enclosed
  5284. in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line.
  5285. </summary>
  5286. <remarks>
  5287. POST is designed to allow a uniform method to cover the following functions:
  5288. <list type="bullet">
  5289. <item>
  5290. Annotation of existing resources;
  5291. </item><item>
  5292. Posting a message to a bulletin board, newsgroup, mailing list, or similar group of articles;
  5293. </item><item>
  5294. Providing a block of data, such as the result of submitting a form, to a data-handling process;
  5295. </item><item>
  5296. Extending a database through an append operation.
  5297. </item>
  5298. </list>
  5299. <para>
  5300. If a resource has been created on the origin server, the response SHOULD be 201 (Created) and
  5301. contain an entity which describes the status of the request and refers to the new resource, and a
  5302. Location header (see section 14.30).
  5303. </para>
  5304. <para>
  5305. The action performed by the POST method might not result in a resource that can be identified by a URI.
  5306. In this case, either 200 (OK) or 204 (No Content) is the appropriate response status, depending on
  5307. whether or not the response includes an entity that describes the result.
  5308. </para><para>
  5309. Responses to this method are not cacheable, unless the response includes appropriate Cache-Control
  5310. or Expires header fields. However, the 303 (See Other) response can be used to direct the user agent
  5311. to retrieve a cacheable resource.
  5312. </para>
  5313. </remarks>
  5314. </member>
  5315. <member name="F:HttpServer.Methods.Put">
  5316. <summary>
  5317. The PUT method requests that the enclosed entity be stored under the supplied Request-URI.
  5318. </summary>
  5319. <remarks>
  5320. <list type="bullet">
  5321. <item>
  5322. If the Request-URI refers to an already existing resource, the enclosed entity SHOULD be considered as a
  5323. modified version of the one residing on the origin server.
  5324. </item><item>
  5325. If the Request-URI does not point to an existing resource, and that URI is capable of being defined as a new
  5326. resource by the requesting user agent, the origin server can create the resource with that URI.
  5327. </item><item>
  5328. If a new resource is created, the origin server MUST inform the user agent via the 201 (Created) response.
  5329. </item><item>
  5330. If an existing resource is modified, either the 200 (OK) or 204 (No Content) response codes SHOULD be sent to
  5331. indicate successful completion of the request.
  5332. </item><item>
  5333. If the resource could not be created or modified with the Request-URI, an appropriate error response SHOULD be
  5334. given that reflects the nature of the problem.
  5335. </item>
  5336. </list>
  5337. <para>
  5338. The recipient of the entity MUST NOT ignore any Content-* (e.g. Content-Range) headers that it does not
  5339. understand or implement and MUST return a 501 (Not Implemented) response in such cases.
  5340. </para>
  5341. </remarks>
  5342. </member>
  5343. <member name="F:HttpServer.Methods.Trace">
  5344. <summary>
  5345. The TRACE method is used to invoke a remote, application-layer loop- back of the request message.
  5346. </summary>
  5347. </member>
  5348. <member name="T:HttpServer.HttpModules.ResourceFileModule">
  5349. <summary>
  5350. Serves files that are stored in embedded resources.
  5351. </summary>
  5352. </member>
  5353. <member name="M:HttpServer.HttpModules.ResourceFileModule.#ctor">
  5354. <summary>
  5355. Initializes a new instance of the <see cref="T:HttpServer.HttpModules.ResourceFileModule"/> class.
  5356. Runs <see cref="M:HttpServer.HttpModules.ResourceFileModule.AddDefaultMimeTypes"/> to make sure the basic mime types are available, they can be cleared later
  5357. through the use of <see cref="P:HttpServer.HttpModules.ResourceFileModule.MimeTypes"/> if desired.
  5358. </summary>
  5359. </member>
  5360. <member name="M:HttpServer.HttpModules.ResourceFileModule.#ctor(HttpServer.ILogWriter)">
  5361. <summary>
  5362. Initializes a new instance of the <see cref="T:HttpServer.HttpModules.ResourceFileModule"/> class.
  5363. Runs <see cref="M:HttpServer.HttpModules.ResourceFileModule.AddDefaultMimeTypes"/> to make sure the basic mime types are available, they can be cleared later
  5364. through the use of <see cref="P:HttpServer.HttpModules.ResourceFileModule.MimeTypes"/> if desired.
  5365. </summary>
  5366. <param name="logWriter">The log writer to use when logging events</param>
  5367. </member>
  5368. <member name="M:HttpServer.HttpModules.ResourceFileModule.AddDefaultMimeTypes">
  5369. <summary>
  5370. Mimtypes that this class can handle per default
  5371. </summary>
  5372. </member>
  5373. <member name="M:HttpServer.HttpModules.ResourceFileModule.AddResources(System.String,System.Reflection.Assembly,System.String)">
  5374. <summary>
  5375. Loads resources from a namespace in the given assembly to an uri
  5376. </summary>
  5377. <param name="toUri">The uri to map the resources to</param>
  5378. <param name="fromAssembly">The assembly in which the resources reside</param>
  5379. <param name="fromNamespace">The namespace from which to load the resources</param>
  5380. <usage>
  5381. resourceLoader.LoadResources("/user/", typeof(User).Assembly, "MyLib.Models.User.Views");
  5382. will make ie the resource MyLib.Models.User.Views.stylesheet.css accessible via /user/stylesheet.css
  5383. </usage>
  5384. <returns>The amount of loaded files, giving you the possibility of making sure the resources needed gets loaded</returns>
  5385. </member>
  5386. <member name="M:HttpServer.HttpModules.ResourceFileModule.CanHandle(HttpServer.IHttpRequest)">
  5387. <summary>
  5388. Returns true if the module can handle the request
  5389. </summary>
  5390. </member>
  5391. <member name="M:HttpServer.HttpModules.ResourceFileModule.Process(HttpServer.IHttpRequest,HttpServer.IHttpResponse,HttpServer.Sessions.IHttpSession)">
  5392. <summary>
  5393. Method that process the url
  5394. </summary>
  5395. <param name="request">Information sent by the browser about the request</param>
  5396. <param name="response">Information that is being sent back to the client.</param>
  5397. <param name="session">Session used to </param>
  5398. <returns>true if this module handled the request.</returns>
  5399. </member>
  5400. <member name="P:HttpServer.HttpModules.ResourceFileModule.MimeTypes">
  5401. <summary>
  5402. List with all mime-type that are allowed.
  5403. </summary>
  5404. <remarks>All other mime types will result in a Forbidden http status code.</remarks>
  5405. </member>
  5406. </members>
  5407. </doc>