(i any)
| 873 | } |
| 874 | |
| 875 | func (l *loopyWriter) handle(i any) error { |
| 876 | switch i := i.(type) { |
| 877 | case *incomingWindowUpdate: |
| 878 | l.incomingWindowUpdateHandler(i) |
| 879 | case *outgoingWindowUpdate: |
| 880 | return l.outgoingWindowUpdateHandler(i) |
| 881 | case *incomingSettings: |
| 882 | return l.incomingSettingsHandler(i) |
| 883 | case *outgoingSettings: |
| 884 | return l.outgoingSettingsHandler(i) |
| 885 | case *headerFrame: |
| 886 | return l.headerHandler(i) |
| 887 | case *registerStream: |
| 888 | l.registerStreamHandler(i) |
| 889 | case *cleanupStream: |
| 890 | return l.cleanupStreamHandler(i) |
| 891 | case *earlyAbortStream: |
| 892 | return l.earlyAbortStreamHandler(i) |
| 893 | case *incomingGoAway: |
| 894 | return l.incomingGoAwayHandler(i) |
| 895 | case *dataFrame: |
| 896 | l.preprocessData(i) |
| 897 | case *ping: |
| 898 | return l.pingHandler(i) |
| 899 | case *goAway: |
| 900 | return l.goAwayHandler(i) |
| 901 | case *outFlowControlSizeRequest: |
| 902 | l.outFlowControlSizeRequestHandler(i) |
| 903 | case closeConnection: |
| 904 | // Just return a non-I/O error and run() will flush and close the |
| 905 | // connection. |
| 906 | return ErrConnClosing |
| 907 | default: |
| 908 | return fmt.Errorf("transport: unknown control message type %T", i) |
| 909 | } |
| 910 | return nil |
| 911 | } |
| 912 | |
| 913 | func (l *loopyWriter) applySettings(ss []http2.Setting) { |
| 914 | for _, s := range ss { |
no test coverage detected