1
0

HttpServer_OpenSim.xml 270 KB

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