Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsHttpTransaction.cpp File Reference
#include "nsHttpHandler.h"
#include "nsHttpTransaction.h"
#include "nsHttpConnection.h"
#include "nsHttpRequestHead.h"
#include "nsHttpResponseHead.h"
#include "nsHttpChunkedDecoder.h"
#include "nsTransportUtils.h"
#include "nsIOService.h"
#include "nsAutoLock.h"
#include "pratom.h"
#include "plevent.h"
#include "nsIStringStream.h"
#include "nsISeekableStream.h"
#include "nsISocketTransport.h"
#include "nsMultiplexInputStream.h"
#include "nsComponentManagerUtils.h"
#include "nsServiceManagerUtils.h"
#include "nsIHttpActivityObserver.h"

Go to the source code of this file.


#define MAX_LINEBUF_LENGTH   (1024 * 10)


static char * LocateHttpStart (char *buf, PRUint32 len)
 NS_IMPL_THREADSAFE_QUERY_INTERFACE2 (nsHttpTransaction, nsIInputStreamCallback, nsIOutputStreamCallback) NS_IMETHODIMP nsHttpTransaction

Define Documentation

#define MAX_LINEBUF_LENGTH   (1024 * 10)

Definition at line 74 of file nsHttpTransaction.cpp.

Function Documentation

static char* LocateHttpStart ( char *  buf,
PRUint32  len 
) [static]

Definition at line 81 of file nsHttpTransaction.cpp.

    // if we have received less than 4 bytes of data, then we'll have to
    // just accept a partial match, which may not be correct.
    if (len < 4)
        return (PL_strncasecmp(buf, "HTTP", len) == 0) ? buf : 0;

    // PL_strncasestr would be perfect for this, but unfortunately bug 96571
    // prevents its use here.
    while (len >= 4) {
        if (PL_strncasecmp(buf, "HTTP", 4) == 0)
            return buf;
    return 0;

Here is the call graph for this function:

Here is the caller graph for this function:

static NS_DEFINE_CID ( kMultiplexInputStream  ,
) [static]

Definition at line 1107 of file nsHttpTransaction.cpp.

    if (mConnection) {
        nsresult rv = mConnection->ResumeSend();
        if (NS_FAILED(rv))
            NS_ERROR("ResumeSend failed");
    return NS_OK;