aspxtreme

HttpResponse Class

System.Web Namespace


Encapsulates HTTP response information from an ASP.NET operation.

HttpResponse Class Members

Collapse   Constructors

Visibility Constructor Parameters
public HttpResponse ( TextWriter writer )

Collapse   Properties

Visibility Name Value Type Accessibility
public Buffer Boolean [ Get , Set ]
public BufferOutput Boolean [ Get , Set ]
public Cache HttpCachePolicy [ Get ]
public CacheControl String [ Get , Set ]
public Charset String [ Get , Set ]
public ContentEncoding Encoding [ Get , Set ]
public ContentType String [ Get , Set ]
public Cookies HttpCookieCollection [ Get ]
public Expires Int32 [ Get , Set ]
public ExpiresAbsolute DateTime [ Get , Set ]
public Filter Stream [ Get , Set ]
public HeaderEncoding Encoding [ Get , Set ]
public Headers NameValueCollection [ Get ]
public IsClientConnected Boolean [ Get ]
public IsRequestBeingRedirected Boolean [ Get ]
public Output TextWriter [ Get ]
public OutputStream Stream [ Get ]
public RedirectLocation String [ Get , Set ]
public Status String [ Get , Set ]
public StatusCode Int32 [ Get , Set ]
public StatusDescription String [ Get , Set ]
public SubStatusCode Int32 [ Get , Set ]
public SuppressContent Boolean [ Get , Set ]
public TrySkipIisCustomErrors Boolean [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
public AddCacheDependency ( CacheDependency dependencies ) Void
public AddCacheItemDependencies ( String cacheKeys ) Void
public AddCacheItemDependencies ( ArrayList cacheKeys ) Void
public AddCacheItemDependency ( String cacheKey ) Void
public AddFileDependencies ( String filenames ) Void
public AddFileDependencies ( ArrayList filenames ) Void
public AddFileDependency ( String filename ) Void
public AddHeader ( String name , String value ) Void
public AppendCookie ( HttpCookie cookie ) Void
public AppendHeader ( String name , String value ) Void
public AppendToLog ( String param ) Void
public ApplyAppPathModifier ( String virtualPath ) String
public BinaryWrite ( Byte buffer ) Void
public Clear ( ) Void
public ClearContent ( ) Void
public ClearHeaders ( ) Void
public Close ( ) Void
public DisableKernelCache ( ) Void
public End ( ) Void
public Flush ( ) Void
public Pics ( String value ) Void
public Redirect ( String url , Boolean endResponse ) Void
public Redirect ( String url ) Void
public static RemoveOutputCacheItem ( String path ) Void
public SetCookie ( HttpCookie cookie ) Void
public TransmitFile ( String filename ) Void
public TransmitFile ( String filename , Int64 offset , Int64 length ) Void
public Write ( String s ) Void
public Write ( Object obj ) Void
public Write ( Char ch ) Void
public Write ( Char buffer , Int32 index , Int32 count ) Void
public WriteFile ( String filename , Boolean readIntoMemory ) Void
public WriteFile ( String filename ) Void
public WriteFile ( String filename , Int64 offset , Int64 size ) Void
public WriteFile ( IntPtr fileHandle , Int64 offset , Int64 size ) Void
public WriteSubstitution ( HttpResponseSubstitutionCallback callback ) Void

Remarks

The members of the HttpResponse class are exposed via the intrinsic Response object, which manages HTTP output to the client.

For background information on what makes up an HTTP response message generated by a server, see Section 6 Response in the Hypertext Transfer Protocol ( HTTP/1.1 ) documentation, available from the World Wide Web Consortium.

Syntax


To set a property or call a method:

Response.propertyName = value;
Response.methodName ( arguments );
  C# VB

To return the value of a property or method:

Type var = Response.propertyName;
Type var = Response.collectionName  [ key ];
Type var = Response.methodName ( arguments );
  C# VB



Books and more ...


Suggested Reading

Need a break ?



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support aspxtreme