HttpServer_OpenSim.xml 281 KB

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