My Project
Loading...
Searching...
No Matches
Classes | Enumerations
WebSocketSharp.Net Namespace Reference

Classes

class  AuthenticationBase
 
class  AuthenticationChallenge
 
class  AuthenticationResponse
 
class  Chunk
 
class  ChunkedRequestStream
 
class  ChunkStream
 
class  ClientSslConfiguration
 Stores the parameters for the SslStream used by clients. More...
 
class  Cookie
 Provides a set of methods and properties used to manage an HTTP cookie. More...
 
class  CookieCollection
 Provides a collection of instances of the Cookie class. More...
 
class  CookieException
 The exception that is thrown when a Cookie gets an error. More...
 
class  EndPointListener
 
class  EndPointManager
 
class  HttpBasicIdentity
 Holds the username and password from an HTTP Basic authentication attempt. More...
 
class  HttpConnection
 
class  HttpDigestIdentity
 Holds the username and other parameters from an HTTP Digest authentication attempt. More...
 
class  HttpHeaderInfo
 
class  HttpListener
 Provides a simple, programmatically controlled HTTP listener. More...
 
class  HttpListenerAsyncResult
 
class  HttpListenerContext
 Provides the access to the HTTP request and response objects used by the HttpListener class. More...
 
class  HttpListenerException
 The exception that is thrown when an error occurs processing an HTTP request. More...
 
class  HttpListenerPrefix
 
class  HttpListenerPrefixCollection
 Provides a collection used to store the URI prefixes for a instance of the HttpListener class. More...
 
class  HttpListenerRequest
 Represents an incoming HTTP request to a HttpListener instance. More...
 
class  HttpListenerResponse
 Represents an HTTP response to an HTTP request received by a HttpListener instance. More...
 
class  HttpStreamAsyncResult
 
class  HttpUtility
 
class  HttpVersion
 Provides the HTTP version numbers. More...
 
class  NetworkCredential
 Provides the credentials for the password-based authentication. More...
 
class  QueryStringCollection
 
class  ReadBufferState
 
class  RequestStream
 
class  ResponseStream
 
class  ServerSslConfiguration
 Stores the parameters for the SslStream used by servers. More...
 
class  WebHeaderCollection
 Provides a collection of the HTTP headers associated with a request or response. More...
 

Enumerations

enum  AuthenticationSchemes { None , Digest = 1 , Basic = 8 , Anonymous = 0x8000 }
 Specifies the scheme for authentication. More...
 
enum  HttpRequestHeader {
  CacheControl , Connection , Date , KeepAlive ,
  Pragma , Trailer , TransferEncoding , Upgrade ,
  Via , Warning , Allow , ContentLength ,
  ContentType , ContentEncoding , ContentLanguage , ContentLocation ,
  ContentMd5 , ContentRange , Expires , LastModified ,
  Accept , AcceptCharset , AcceptEncoding , AcceptLanguage ,
  Authorization , Cookie , Expect , From ,
  Host , IfMatch , IfModifiedSince , IfNoneMatch ,
  IfRange , IfUnmodifiedSince , MaxForwards , ProxyAuthorization ,
  Referer , Range , Te , Translate ,
  UserAgent , SecWebSocketKey , SecWebSocketExtensions , SecWebSocketProtocol ,
  SecWebSocketVersion
}
 Indicates the HTTP header that may be specified in a client request. More...
 
enum  HttpResponseHeader {
  CacheControl , Connection , Date , KeepAlive ,
  Pragma , Trailer , TransferEncoding , Upgrade ,
  Via , Warning , Allow , ContentLength ,
  ContentType , ContentEncoding , ContentLanguage , ContentLocation ,
  ContentMd5 , ContentRange , Expires , LastModified ,
  AcceptRanges , Age , ETag , Location ,
  ProxyAuthenticate , RetryAfter , Server , SetCookie ,
  Vary , WwwAuthenticate , SecWebSocketExtensions , SecWebSocketAccept ,
  SecWebSocketProtocol , SecWebSocketVersion
}
 Indicates the HTTP header that can be specified in a server response. More...
 
enum  HttpStatusCode {
  Continue = 100 , SwitchingProtocols = 101 , OK = 200 , Created = 201 ,
  Accepted = 202 , NonAuthoritativeInformation = 203 , NoContent = 204 , ResetContent = 205 ,
  PartialContent = 206 , MultipleChoices = 300 , Ambiguous = 300 , MovedPermanently = 301 ,
  Moved = 301 , Found = 302 , Redirect = 302 , SeeOther = 303 ,
  RedirectMethod = 303 , NotModified = 304 , UseProxy = 305 , Unused = 306 ,
  TemporaryRedirect = 307 , RedirectKeepVerb = 307 , BadRequest = 400 , Unauthorized = 401 ,
  PaymentRequired = 402 , Forbidden = 403 , NotFound = 404 , MethodNotAllowed = 405 ,
  NotAcceptable = 406 , ProxyAuthenticationRequired = 407 , RequestTimeout = 408 , Conflict = 409 ,
  Gone = 410 , LengthRequired = 411 , PreconditionFailed = 412 , RequestEntityTooLarge = 413 ,
  RequestUriTooLong = 414 , UnsupportedMediaType = 415 , RequestedRangeNotSatisfiable = 416 , ExpectationFailed = 417 ,
  InternalServerError = 500 , NotImplemented = 501 , BadGateway = 502 , ServiceUnavailable = 503 ,
  GatewayTimeout = 504 , HttpVersionNotSupported = 505
}
 Indicates the HTTP status code that can be specified in a server response. More...
 

Enumeration Type Documentation

◆ AuthenticationSchemes

Specifies the scheme for authentication.

Enumerator
None 

No authentication is allowed.

Digest 

Specifies digest authentication.

Basic 

Specifies basic authentication.

Anonymous 

Specifies anonymous authentication.

◆ HttpRequestHeader

Indicates the HTTP header that may be specified in a client request.

The headers of this enumeration are defined in RFC 2616

or RFC 6455

.

Enumerator
CacheControl 

Indicates the Cache-Control header.

Connection 

Indicates the Connection header.

Date 

Indicates the Date header.

KeepAlive 

Indicates the Keep-Alive header.

Pragma 

Indicates the Pragma header.

Trailer 

Indicates the Trailer header.

TransferEncoding 

Indicates the Transfer-Encoding header.

Upgrade 

Indicates the Upgrade header.

Via 

Indicates the Via header.

Warning 

Indicates the Warning header.

Allow 

Indicates the Allow header.

ContentLength 

Indicates the Content-Length header.

ContentType 

Indicates the Content-Type header.

ContentEncoding 

Indicates the Content-Encoding header.

ContentLanguage 

Indicates the Content-Language header.

ContentLocation 

Indicates the Content-Location header.

ContentMd5 

Indicates the Content-MD5 header.

ContentRange 

Indicates the Content-Range header.

Expires 

Indicates the Expires header.

LastModified 

Indicates the Last-Modified header.

Accept 

Indicates the Accept header.

AcceptCharset 

Indicates the Accept-Charset header.

AcceptEncoding 

Indicates the Accept-Encoding header.

AcceptLanguage 

Indicates the Accept-Language header.

Authorization 

Indicates the Authorization header.

Cookie 

Indicates the Cookie header.

Expect 

Indicates the Expect header.

From 

Indicates the From header.

Host 

Indicates the Host header.

IfMatch 

Indicates the If-Match header.

IfModifiedSince 

Indicates the If-Modified-Since header.

IfNoneMatch 

Indicates the If-None-Match header.

IfRange 

Indicates the If-Range header.

IfUnmodifiedSince 

Indicates the If-Unmodified-Since header.

MaxForwards 

Indicates the Max-Forwards header.

ProxyAuthorization 

Indicates the Proxy-Authorization header.

Referer 

Indicates the Referer header.

Range 

Indicates the Range header.

Te 

Indicates the TE header.

Translate 

Indicates the Translate header.

UserAgent 

Indicates the User-Agent header.

SecWebSocketKey 

Indicates the Sec-WebSocket-Key header.

SecWebSocketExtensions 

Indicates the Sec-WebSocket-Extensions header.

SecWebSocketProtocol 

Indicates the Sec-WebSocket-Protocol header.

SecWebSocketVersion 

Indicates the Sec-WebSocket-Version header.

◆ HttpResponseHeader

Indicates the HTTP header that can be specified in a server response.

The headers of this enumeration are defined in RFC 2616

or RFC 6455

.

Enumerator
CacheControl 

Indicates the Cache-Control header.

Connection 

Indicates the Connection header.

Date 

Indicates the Date header.

KeepAlive 

Indicates the Keep-Alive header.

Pragma 

Indicates the Pragma header.

Trailer 

Indicates the Trailer header.

TransferEncoding 

Indicates the Transfer-Encoding header.

Upgrade 

Indicates the Upgrade header.

Via 

Indicates the Via header.

Warning 

Indicates the Warning header.

Allow 

Indicates the Allow header.

ContentLength 

Indicates the Content-Length header.

ContentType 

Indicates the Content-Type header.

ContentEncoding 

Indicates the Content-Encoding header.

ContentLanguage 

Indicates the Content-Language header.

ContentLocation 

Indicates the Content-Location header.

ContentMd5 

Indicates the Content-MD5 header.

ContentRange 

Indicates the Content-Range header.

Expires 

Indicates the Expires header.

LastModified 

Indicates the Last-Modified header.

AcceptRanges 

Indicates the Accept-Ranges header.

Age 

Indicates the Age header.

ETag 

Indicates the ETag header.

Location 

Indicates the Location header.

ProxyAuthenticate 

Indicates the Proxy-Authenticate header.

RetryAfter 

Indicates the Retry-After header.

Server 

Indicates the Server header.

SetCookie 

Indicates the Set-Cookie header.

Vary 

Indicates the Vary header.

WwwAuthenticate 

Indicates the WWW-Authenticate header.

SecWebSocketExtensions 

Indicates the Sec-WebSocket-Extensions header.

SecWebSocketAccept 

Indicates the Sec-WebSocket-Accept header.

SecWebSocketProtocol 

Indicates the Sec-WebSocket-Protocol header.

SecWebSocketVersion 

Indicates the Sec-WebSocket-Version header.

◆ HttpStatusCode

Indicates the HTTP status code that can be specified in a server response.

The values of this enumeration are defined in RFC 2616

.

Enumerator
Continue 

Equivalent to status code 100. Indicates that the client should continue with its request.

SwitchingProtocols 

Equivalent to status code 101. Indicates that the server is switching the HTTP version or protocol on the connection.

OK 

Equivalent to status code 200. Indicates that the client's request has succeeded.

Created 

Equivalent to status code 201. Indicates that the client's request has been fulfilled and resulted in a new resource being created.

Accepted 

Equivalent to status code 202. Indicates that the client's request has been accepted for processing, but the processing has not been completed.

NonAuthoritativeInformation 

Equivalent to status code 203. Indicates that the returned metainformation is from a local or a third-party copy instead of the origin server.

NoContent 

Equivalent to status code 204. Indicates that the server has fulfilled the client's request but does not need to return an entity-body.

ResetContent 

Equivalent to status code 205. Indicates that the server has fulfilled the client's request, and the user agent should reset the document view which caused the request to be sent.

PartialContent 

Equivalent to status code 206. Indicates that the server has fulfilled the partial GET request for the resource.

MultipleChoices 

Equivalent to status code 300. Indicates that the requested resource corresponds to any of multiple representations.

MultipleChoices is a synonym for Ambiguous.

Ambiguous 

Equivalent to status code 300. Indicates that the requested resource corresponds to any of multiple representations.

Ambiguous is a synonym for MultipleChoices.

MovedPermanently 

Equivalent to status code 301. Indicates that the requested resource has been assigned a new permanent URI and any future references to this resource should use one of the returned URIs.

MovedPermanently is a synonym for Moved.

Moved 

Equivalent to status code 301. Indicates that the requested resource has been assigned a new permanent URI and any future references to this resource should use one of the returned URIs.

Moved is a synonym for MovedPermanently.

Found 

Equivalent to status code 302. Indicates that the requested resource is located temporarily under a different URI.

Found is a synonym for Redirect.

Redirect 

Equivalent to status code 302. Indicates that the requested resource is located temporarily under a different URI.

Redirect is a synonym for Found.

SeeOther 

Equivalent to status code 303. Indicates that the response to the request can be found under a different URI and should be retrieved using a GET method on that resource.

SeeOther is a synonym for RedirectMethod.

RedirectMethod 

Equivalent to status code 303. Indicates that the response to the request can be found under a different URI and should be retrieved using a GET method on that resource.

RedirectMethod is a synonym for SeeOther.

NotModified 

Equivalent to status code 304. Indicates that the client has performed a conditional GET request and access is allowed, but the document has not been modified.

UseProxy 

Equivalent to status code 305. Indicates that the requested resource must be accessed through the proxy given by the Location field.

Unused 

Equivalent to status code 306. This status code was used in a previous version of the specification, is no longer used, and is reserved for future use.

TemporaryRedirect 

Equivalent to status code 307. Indicates that the requested resource is located temporarily under a different URI.

TemporaryRedirect is a synonym for RedirectKeepVerb.

RedirectKeepVerb 

Equivalent to status code 307. Indicates that the requested resource is located temporarily under a different URI.

RedirectKeepVerb is a synonym for TemporaryRedirect.

BadRequest 

Equivalent to status code 400. Indicates that the client's request could not be understood by the server due to malformed syntax.

Unauthorized 

Equivalent to status code 401. Indicates that the client's request requires user authentication.

PaymentRequired 

Equivalent to status code 402. This status code is reserved for future use.

Forbidden 

Equivalent to status code 403. Indicates that the server understood the client's request but is refusing to fulfill it.

NotFound 

Equivalent to status code 404. Indicates that the server has not found anything matching the request URI.

MethodNotAllowed 

Equivalent to status code 405. Indicates that the method specified in the request line is not allowed for the resource identified by the request URI.

NotAcceptable 

Equivalent to status code 406. Indicates that the server does not have the appropriate resource to respond to the Accept headers in the client's request.

ProxyAuthenticationRequired 

Equivalent to status code 407. Indicates that the client must first authenticate itself with the proxy.

RequestTimeout 

Equivalent to status code 408. Indicates that the client did not produce a request within the time that the server was prepared to wait.

Conflict 

Equivalent to status code 409. Indicates that the client's request could not be completed due to a conflict on the server.

Gone 

Equivalent to status code 410. Indicates that the requested resource is no longer available at the server and no forwarding address is known.

LengthRequired 

Equivalent to status code 411. Indicates that the server refuses to accept the client's request without a defined Content-Length.

PreconditionFailed 

Equivalent to status code 412. Indicates that the precondition given in one or more of the request headers evaluated to false when it was tested on the server.

RequestEntityTooLarge 

Equivalent to status code 413. Indicates that the entity of the client's request is larger than the server is willing or able to process.

RequestUriTooLong 

Equivalent to status code 414. Indicates that the request URI is longer than the server is willing to interpret.

UnsupportedMediaType 

Equivalent to status code 415. Indicates that the entity of the client's request is in a format not supported by the requested resource for the requested method.

RequestedRangeNotSatisfiable 

Equivalent to status code 416. Indicates that none of the range specifier values in a Range request header overlap the current extent of the selected resource.

ExpectationFailed 

Equivalent to status code 417. Indicates that the expectation given in an Expect request header could not be met by the server.

InternalServerError 

Equivalent to status code 500. Indicates that the server encountered an unexpected condition which prevented it from fulfilling the client's request.

NotImplemented 

Equivalent to status code 501. Indicates that the server does not support the functionality required to fulfill the client's request.

BadGateway 

Equivalent to status code 502. Indicates that a gateway or proxy server received an invalid response from the upstream server.

ServiceUnavailable 

Equivalent to status code 503. Indicates that the server is currently unable to handle the client's request due to a temporary overloading or maintenance of the server.

GatewayTimeout 

Equivalent to status code 504. Indicates that a gateway or proxy server did not receive a timely response from the upstream server or some other auxiliary server.

HttpVersionNotSupported 

Equivalent to status code 505. Indicates that the server does not support the HTTP version used in the client's request.