Did you know ... Search Documentation:
Pack http2_client -- prolog/frames.pl
PublicShow source
author
- James Cash
 data_frame(?StreamIdent:integer, ?Data:list, ?Options)//
DCG for an HTTP/2 data frame
Arguments:
Options- Options list:
padded(PadLength)
If non-zero, the stream will be padded with that many zero bytes.
end_stream(End)
If true, this frame indicates the end of the stream
bug
- Technically, I think having a padding of zero is allowed, but currently that isn't representable
 header_frame(?StreamIdent:integer, ?Headers:list, ?TableSizeInOut, ?Options)//
DCG for an HTTP/2 header frame.
Arguments:
TableSizeInOut- Header table configuration information that is passed to the hpack/7 DCG.
Options- Allowed options:
padded(PadLength)
If non-zero, the stream will be padded with that many zero bytes.
end_stream(EndStream)
If true, this frame indicates the end of the stream
end_headers(End)
If true, this frame indicates the end of the headers
priority(Priority)
If true, this frame has priority set.
See also
- hpack/7
bug
- Technically, I think having a padding of zero is allowed, but currently that isn't representable
To be done
- Support for stream-priority flag
 priority_frame(?StreamIdent:integer, ?Exclusive:boolean, ?StreamDep:integer, ?Weight:integer)//
 rst_frame(?StreamIdent:integer, ?ErrorCode:integer)//
 settings_frame(?Settings:list)//
 settings_ack_frame//
Special case of settings_frame//1 to acknowledge the reciept of headers.
 push_promise_frame(?StreamIdent:integer, ?NewStreamID:integer, ?HeaderInfo, ?Options:list)//
DCG for a push-promise frame, which is a frame notifying the receiver about a new stream the sender intends to initiate.
Arguments:
HeaderInfo- Information to be passed to hpack/7, in the form TableSizeInOut-HeadersList
Options- Options list:
padded(PadLength)
If non-zero, the data will be padded by the indicated number of zero bytes
end_headers(End)
If true, this frame is the end of the stream
See also
- hpack/7
bug
- Technically, I think having a padding of zero is allowed, but currently that isn't representable
 ping_frame(?Data:list, ?Ack:boolean)//
 goaway_frame(?LastStreamId, ?ErrorCode, ?Data)//
 window_update_frame(?StreamIdent, ?Increment)//
 continuation_frame(?StreamIdent:integer, ?HeaderInfo, ?End:boolean)//
Arguments:
HeaderInfo- Information to be passed to hpack/7 HeaderInfo = HeaderTableSize-TableIn-TableOut-HeaderList

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 header_frames(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7)