asp.net.ph

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 ClientDisconnectedToken CancellationToken [ Get ]
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 HeadersWritten Boolean [ Get ]
public IsClientConnected Boolean [ Get ]
public IsRequestBeingRedirected Boolean [ Get ]
public Output TextWriter [ Get , Set ]
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 SupportsAsyncFlush Boolean [ Get ]
public SuppressContent Boolean [ Get , Set ]
public SuppressDefaultCacheControlHeader Boolean [ Get , Set ]
public SuppressFormsAuthenticationRedirect 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 AddOnSendingHeaders ( Action`1 callback ) ISubscriptionToken
public AppendCookie ( HttpCookie cookie ) Void
public AppendHeader ( String name , String value ) Void
public AppendToLog ( String param ) Void
public ApplyAppPathModifier ( String virtualPath ) String
public BeginFlush ( AsyncCallback callback , Object state ) IAsyncResult
public BinaryWrite ( Byte buffer ) Void
public Clear ( ) Void
public ClearContent ( ) Void
public ClearHeaders ( ) Void
public Close ( ) Void
public DisableKernelCache ( ) Void
public DisableUserCache ( ) Void
public End ( ) Void
public EndFlush ( IAsyncResult asyncResult ) Void
public Flush ( ) Void
public FlushAsync ( ) Task
public Pics ( String value ) Void
public PushPromise ( String path ) Void
public PushPromise ( String path , String method , NameValueCollection headers ) Void
public Redirect ( String url , Boolean endResponse ) Void
public Redirect ( String url ) Void
public RedirectPermanent ( String url ) Void
public RedirectPermanent ( String url , Boolean endResponse ) Void
public RedirectToRoute ( RouteValueDictionary routeValues ) Void
public RedirectToRoute ( String routeName ) Void
public RedirectToRoute ( Object routeValues ) Void
public RedirectToRoute ( String routeName , RouteValueDictionary routeValues ) Void
public RedirectToRoute ( String routeName , Object routeValues ) Void
public RedirectToRoutePermanent ( String routeName ) Void
public RedirectToRoutePermanent ( RouteValueDictionary routeValues ) Void
public RedirectToRoutePermanent ( Object routeValues ) Void
public RedirectToRoutePermanent ( String routeName , Object routeValues ) Void
public RedirectToRoutePermanent ( String routeName , RouteValueDictionary routeValues ) Void
public static RemoveOutputCacheItem ( String path , String providerName ) 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 ( Object obj ) Void
public Write ( Char buffer , Int32 index , Int32 count ) Void
public Write ( Char ch ) Void
public Write ( String s ) 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

Skip Navigation Links



Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph