Lines Matching refs:Http2Session
64 const Http2Session::Callbacks Http2Session::callback_struct_saved[2] = {
78 // call Http2Session::MaybeScheduleWrite().
81 Http2Scope::Http2Scope(Http2Session* session) : session_(session) {
100 // The Http2Options object is used during the construction of Http2Session
238 Http2Settings::Http2Settings(Http2Session* session,
293 void Http2Settings::Update(Http2Session* session, get_setting fn) {
356 const char* Http2Session::TypeName() const {
421 Http2Session::Callbacks::Callbacks(bool kHasGetPaddingCallback) {
454 void Http2Session::StopTrackingRcbuf(nghttp2_rcbuf* buf) {
458 void Http2Session::CheckAllocatedSize(size_t previous_size) const {
462 void Http2Session::IncreaseAllocatedSize(size_t size) {
466 void Http2Session::DecreaseAllocatedSize(size_t size) {
470 Http2Session::Http2Session(Http2State* http2_state,
528 Http2Session::~Http2Session() {
543 void Http2Session::MemoryInfo(MemoryTracker* tracker) const {
555 std::string Http2Session::diagnostic_name() const {
556 return std::string("Http2Session ") + TypeName() + " (" +
658 void Http2Session::EmitStatistics() {
667 "Http2Session",
679 void Http2Session::Close(uint32_t code, bool socket_closed) {
735 BaseObjectPtr<Http2Stream> Http2Session::FindStream(int32_t id) {
740 bool Http2Session::CanAddStream() {
752 void Http2Session::AddStream(Http2Stream* stream) {
762 BaseObjectPtr<Http2Stream> Http2Session::RemoveStream(int32_t id) {
778 ssize_t Http2Session::OnDWordAlignedPadding(size_t frameLen,
795 ssize_t Http2Session::OnMaxFrameSizePadding(size_t frameLen,
806 void Http2Session::ConsumeHTTP2Data() {
888 int Http2Session::OnBeginHeadersCallback(nghttp2_session* handle,
891 Http2Session* session = static_cast<Http2Session*>(user_data);
924 int Http2Session::OnHeaderCallback(nghttp2_session* handle,
930 Http2Session* session = static_cast<Http2Session*>(user_data);
952 int Http2Session::OnFrameReceive(nghttp2_session* handle,
955 Http2Session* session = static_cast<Http2Session*>(user_data);
991 int Http2Session::OnInvalidFrame(nghttp2_session* handle,
995 Http2Session* session = static_cast<Http2Session*>(user_data);
1024 void Http2Session::DecrefHeaders(const nghttp2_frame* frame) {
1064 int Http2Session::OnFrameNotSent(nghttp2_session* handle,
1068 Http2Session* session = static_cast<Http2Session*>(user_data);
1101 int Http2Session::OnFrameSent(nghttp2_session* handle,
1104 Http2Session* session = static_cast<Http2Session*>(user_data);
1110 int Http2Session::OnStreamClose(nghttp2_session* handle,
1114 Http2Session* session = static_cast<Http2Session*>(user_data);
1148 int Http2Session::OnInvalidHeader(nghttp2_session* session,
1162 int Http2Session::OnDataChunkReceived(nghttp2_session* handle,
1168 Http2Session* session = static_cast<Http2Session*>(user_data);
1244 ssize_t Http2Session::OnSelectPadding(nghttp2_session* handle,
1248 Http2Session* session = static_cast<Http2Session*>(user_data);
1267 int Http2Session::OnNghttpError(nghttp2_session* handle,
1274 Http2Session* session = static_cast<Http2Session*>(user_data);
1289 // See the comments in Http2Session::OnDataChunkReceived
1296 Http2Session* session = stream->session();
1332 void Http2Session::HandleHeadersFrame(const nghttp2_frame* frame) {
1386 void Http2Session::HandlePriorityFrame(const nghttp2_frame* frame) {
1413 int Http2Session::HandleDataFrame(const nghttp2_frame* frame) {
1435 void Http2Session::HandleGoawayFrame(const nghttp2_frame* frame) {
1465 void Http2Session::HandleAltSvcFrame(const nghttp2_frame* frame) {
1488 void Http2Session::HandleOriginFrame(const nghttp2_frame* frame) {
1511 void Http2Session::HandlePingFrame(const nghttp2_frame* frame) {
1546 void Http2Session::HandleSettingsFrame(const nghttp2_frame* frame) {
1582 void Http2Session::OnStreamAfterWrite(WriteWrap* w, int status) {
1624 void Http2Session::MaybeScheduleWrite() {
1633 BaseObjectPtr<Http2Session> strong_ref{this};
1653 void Http2Session::MaybeStopReading() {
1667 void Http2Session::ClearOutgoing(int status) {
1705 void Http2Session::PushOutgoingBuffer(NgHttp2StreamWrite&& write) {
1713 void Http2Session::CopyDataIntoOutgoing(const uint8_t* src, size_t src_length) {
1732 uint8_t Http2Session::SendPendingData() {
1817 int Http2Session::OnSendData(
1824 Http2Session* session = static_cast<Http2Session*>(user_data);
1871 Http2Stream* Http2Session::SubmitRequest(
1893 uv_buf_t Http2Session::OnStreamAlloc(size_t suggested_size) {
1898 void Http2Session::OnStreamRead(ssize_t nread, const uv_buf_t& buf_) {
1967 bool Http2Session::HasWritesOnSocketForStream(Http2Stream* stream) {
1975 // Every Http2Session session is tightly bound to a single i/o StreamBase
1979 void Http2Session::Consume(Local<Object> stream_obj) {
1989 void Http2Session::Receive(const FunctionCallbackInfo<Value>& args) {
1990 Http2Session* session;
2012 Http2Stream* Http2Stream::New(Http2Session* session,
2026 Http2Stream::Http2Stream(Http2Session* session,
2076 const Http2Session* sess = session();
2481 Http2Session* session = static_cast<Http2Session*>(user_data);
2508 // Just return the length, let Http2Session::OnSendData take care of
2580 // Sets the next stream ID the Http2Session. If successful, returns true.
2581 void Http2Session::SetNextStreamID(const FunctionCallbackInfo<Value>& args) {
2583 Http2Session* session;
2597 void Http2Session::SetLocalWindowSize(
2600 Http2Session* session;
2617 void Http2Session::RefreshSettings(const FunctionCallbackInfo<Value>& args) {
2618 Http2Session* session;
2625 // information of the current Http2Session. This updates the values in the
2627 void Http2Session::RefreshState(const FunctionCallbackInfo<Value>& args) {
2628 Http2Session* session;
2657 // Constructor for new Http2Session instances.
2658 void Http2Session::New(const FunctionCallbackInfo<Value>& args) {
2665 Http2Session* session = new Http2Session(state, args.This(), type);
2670 // Binds the Http2Session with a StreamBase used for i/o
2671 void Http2Session::Consume(const FunctionCallbackInfo<Value>& args) {
2672 Http2Session* session;
2678 // Destroys the Http2Session instance and renders it unusable
2679 void Http2Session::Destroy(const FunctionCallbackInfo<Value>& args) {
2680 Http2Session* session;
2690 // Submits a new request on the Http2Session and returns either an error code
2692 void Http2Session::Request(const FunctionCallbackInfo<Value>& args) {
2693 Http2Session* session;
2704 session->Http2Session::SubmitRequest(
2719 // Submits a GOAWAY frame to signal that the Http2Session is in the process
2721 // state of the Http2Session, it's simply a notification.
2722 void Http2Session::Goaway(uint32_t code,
2738 // Submits a GOAWAY frame to signal that the Http2Session is in the process
2741 void Http2Session::Goaway(const FunctionCallbackInfo<Value>& args) {
2744 Http2Session* session;
2760 void Http2Session::UpdateChunksSent(const FunctionCallbackInfo<Value>& args) {
2764 Http2Session* session;
2922 void Http2Session::AltSvc(int32_t id,
2932 void Http2Session::Origin(const Origins& origins) {
2942 void Http2Session::AltSvc(const FunctionCallbackInfo<Value>& args) {
2944 Http2Session* session;
2972 void Http2Session::Origin(const FunctionCallbackInfo<Value>& args) {
2975 Http2Session* session;
2985 void Http2Session::Ping(const FunctionCallbackInfo<Value>& args) {
2986 Http2Session* session;
3002 // Submits a SETTINGS frame for the Http2Session
3003 void Http2Session::Settings(const FunctionCallbackInfo<Value>& args) {
3004 Http2Session* session;
3010 BaseObjectPtr<Http2Ping> Http2Session::PopPing() {
3020 bool Http2Session::AddPing(const uint8_t* payload, Local<Function> callback) {
3049 BaseObjectPtr<Http2Settings> Http2Session::PopSettings() {
3059 bool Http2Session::AddSettings(Local<Function> callback) {
3084 Http2Session* session,
3262 NewFunctionTemplate(isolate, Http2Session::New);
3264 Http2Session::kInternalFieldCount);
3266 SetProtoMethod(isolate, session, "origin", Http2Session::Origin);
3267 SetProtoMethod(isolate, session, "altsvc", Http2Session::AltSvc);
3268 SetProtoMethod(isolate, session, "ping", Http2Session::Ping);
3269 SetProtoMethod(isolate, session, "consume", Http2Session::Consume);
3270 SetProtoMethod(isolate, session, "receive", Http2Session::Receive);
3271 SetProtoMethod(isolate, session, "destroy", Http2Session::Destroy);
3272 SetProtoMethod(isolate, session, "goaway", Http2Session::Goaway);
3273 SetProtoMethod(isolate, session, "settings", Http2Session::Settings);
3274 SetProtoMethod(isolate, session, "request", Http2Session::Request);
3276 isolate, session, "setNextStreamID", Http2Session::SetNextStreamID);
3278 isolate, session, "setLocalWindowSize", Http2Session::SetLocalWindowSize);
3280 isolate, session, "updateChunksSent", Http2Session::UpdateChunksSent);
3281 SetProtoMethod(isolate, session, "refreshState", Http2Session::RefreshState);
3286 Http2Session::RefreshSettings<nghttp2_session_get_local_settings>);
3291 Http2Session::RefreshSettings<nghttp2_session_get_remote_settings>);
3292 SetConstructorFunction(context, target, "Http2Session", session);